DELXCOMMERCE 12 routes

Discovery pack · Trading, quant, and risk agents

Trade risk desk math for agents

Desk-ready local calc for crypto trade agents: PnL, fees, slippage, liquidation, Kelly, VWAP/TWAP, and position sizing—$0.001 x402, no exchange keys or market feed.

PnL API for agentsKelly criterion APIliquidation price calculatorslippage bps APIposition size by riskVWAP TWAP APIx402 trading mathtrade risk desk

Human → agent handoff

Share the job, not a directory.

Every route below has its own price, schema and bounded AgentCash command. Copying a command preserves this pack as a measurable discovery source.

https://api.delx.ai/api/v1/x402/start?q=pnl%20kelly%20slippage%20liquidation%20margin%20position%20size%20trading%20math%20for%20agents
01
commercial-operations · POST /api/v1/x402/pnl-pctPercent PnL

util_pnl_pct

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pnl-pct -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"entry":100,"exit":110}'
$0.001
02
commercial-operations · POST /api/v1/x402/pnl-with-feesPnL After Fees

util_pnl_with_fees

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pnl-with-fees -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"entry":100,"exit":110,"size":1,"fee_rate":0.001}'
$0.001
03
commercial-operations · POST /api/v1/x402/unrealized-pnlUnrealized PnL

util_unrealized_pnl

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/unrealized-pnl -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"entry":100,"mark":95,"size":3}'
$0.001
04
commercial-operations · POST /api/v1/x402/slippage-bpsSlippage Basis Points

util_slippage_bps

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/slippage-bps -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"mid":100,"fill":100.3}'
$0.001
05
commercial-operations · POST /api/v1/x402/liq-price-longLong Liquidation Price

util_liq_price_long

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/liq-price-long -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"entry":100,"leverage":10,"mmr":0.005}'
$0.001
06
commercial-operations · POST /api/v1/x402/liq-price-shortShort Liquidation Price

util_liq_price_short

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/liq-price-short -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"entry":100,"leverage":10,"mmr":0.005}'
$0.001
07
commercial-operations · POST /api/v1/x402/position-size-riskPosition Size by Risk

util_position_size_risk

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/position-size-risk -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"equity":10000,"risk_pct":0.01,"entry":100,"stop":95}'
$0.001
08
commercial-operations · POST /api/v1/x402/kelly-fractionKelly Fraction

util_kelly_fraction

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/kelly-fraction -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"win_prob":0.55,"b":1.2}'
$0.001
09
commercial-operations · POST /api/v1/x402/half-kellyHalf-Kelly Fraction

util_half_kelly

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/half-kelly -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"win_prob":0.55,"b":1.2}'
$0.001
10
commercial-operations · POST /api/v1/x402/vwap-simpleSimple VWAP

util_vwap_simple

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/vwap-simple -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"samples":[{"price":10,"size":2},{"price":12,"size":2}]}'
$0.001
11
commercial-operations · POST /api/v1/x402/drawdown-pctDrawdown Percent

util_drawdown_pct

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/drawdown-pct -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"peak":120,"trough":90}'
$0.001
12
commercial-operations · POST /api/v1/x402/amm-price-impact-bpsAMM Price Impact (bps)

util_amm_price_impact_bps

npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/amm-price-impact-bps -m POST -H 'x-delx-source: discovery-pack-trade-risk-desk' --max-amount 0.001 -b '{"reserve_in":1000,"reserve_out":1000,"amount_in":50,"fee_bps":30}'
$0.001

Machine-readable path

Inspect the graph.