/api/v1/extension/token/limit_order

Input
Description
Examples

token

Your extension token

chain

One of the available options

CHAIN_SOL

input

Token address or pool address

2kmgscz3mCNgBxWX1Ck4pBmRcXpf5iV8umK417wRpump

direction

One of the available options

TRADE_DIRECTION_BUY

amount

Unformatted amount or percentage of the balance

0.1 / 100%

targetMcap

Target market cap in usd to trigger the limit order. This string must contain '<' or '>' sign to indicate the trigger condition

'<1000000' / '>1000000'

walletId

Optional wallet_id to execute trade. If empty, primary wallet will be used

settings

Optional swap settings. If this field is omitted Echo will use your default settings. If you've provided settings be sure to fill out all values

implements limit order trade (buy/sell)

post
Body
tokenstringOptional
chainstring · enumOptionalDefault: CHAIN_UNSPECIFIEDPossible values:
inputstringOptional
directionstring · enumOptionalDefault: TRADE_DIRECTION_UNSPECIFIEDPossible values:
amountstringOptional
targetMcapstringOptional
walletIdstringOptional
Responses
200

A successful response.

application/json
Responseobject
post
POST /api/v1/extension/token/limit_order HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 247

{
  "token": "text",
  "chain": "CHAIN_UNSPECIFIED",
  "input": "text",
  "direction": "TRADE_DIRECTION_UNSPECIFIED",
  "amount": "text",
  "targetMcap": "text",
  "walletId": "text",
  "settings": {
    "buyFee": 1,
    "sellFee": 1,
    "buyTip": 1,
    "sellTip": 1,
    "buySlippage": 1,
    "sellSlippage": 1
  }
}
{}

Last updated