Skip to content
Fourohtwo

tanod.dev/v1/chain/pre-trade-check

Quote up to five swap sizes with Uniswap V3 price impact, fee tier and candle-close deviation on Ethereum or Base. Use when an agent is about to swap and needs the price impact at several sizes before choosing one.

SolanaAnswering
POSThttps://tanod.dev/v1/chain/pre-trade-check

Uptime100% of 1 check in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/chain/pre-trade-check" \
  -d '{"chain":"base","sizes":["1","10","100"],"token_in":"0x4200000000000000000000000000000000000006","token_out":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}'

# 402 Payment Required comes back with the price and where to pay.

Example input

{
  "chain": "base",
  "sizes": [
    "1",
    "10",
    "100"
  ],
  "token_in": "0x4200000000000000000000000000000000000006",
  "token_out": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}

More from Tanod chainpeek