Trade
Last updated
Last updated
Note: All trading calls need to be authorized against your AIO Exchange account before processing any request, refer to the Authentication tab for more details.
POST
https://api.aio.exchange/api/v2/trade/requestquote
Each exchange orderbook is queried and blockchains analyzed according to parameters.
Name | Type | Description |
---|---|---|
POST
https://api.aio.exchange/api/v2/trade/acceptquote
GET
https://api.aio.exchange/api/v2/trade/orderdetail/{orderId}
Eg. https://api.aio.exchange/api/v2/trade/orderdetail/e8952605-4bc2-4039-a133-4e3gk513afd4c
GET
https://api.aio.exchange/api/v2/trade/orderdetails
Eg. https://api.aio.exchange/api/v2/trade/orderdetails ,
https://api.aio.exchange/api/v2/trade/orderdetails/{pagenumber}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
side*
String
"buy" or "sell"
executionType*
Integer
1 = Best Execution
2 = Quickest Best Execution
3 = Instant Settlement
orderType*
String
"Market", "Limit" or "Stop"
baseAmount
Decimal
This refers to the (base) amount in terms of the first part of the ticker pair.
i.e. if BTC-USDT ({BaseSymbol}-{TargetSymbol} is requested, the baseAmount refers to the amount in BTC.
This parameter can be used for both "buy" and "sell" orders.
*If this parameter is not provided, targetAmount is required.
baseTokenId
Integer
Unique Token Identifier
*If this parameter is not provided, baseTokenSymbol is required.
targetTokenId
Integer
Unique Token Identifier
*If this parameter is not provided, targetTokenSymbol is required.
sources
String[]
Array of exchangeIds to filter quotes.
Available value include
["BINANCE", "BITFINEX", "BITMART", "BITMART", "BITSTAMP", "BITTREX", "CEX", "COINBASE", "COINMETRO", "CRYPTOCOM", "GATE", "HUOBI", "KRAKEN", "KUCOIN", "OKX", "OKCOIN", "PROBIT"]
targetAmount
Decimal
This refers to the (base) amount in terms of the first part of the ticker pair.
i.e. if BTC-USDT ({BaseSymbol}-{TargetSymbol} is requested, the targetAmount refers to the amount in USDT.
This parameter can be used for both "buy" and "sell" orders.
*If this parameter is not provided, baseAmount is required.
targetTokenSymbol
String
ticker of quote currency (e.g. "BTC")
*If this parameter is not provided, targetCoinId is required.
baseTokenSymbol
String
ticker of base currency (e.g. "BTC")
*If this parameter is not provided, baseCoinId is required.
quoteId*
String
Id Of The Quote To Accept
MaxTimeout
Int
Default: 20 seconds
Maximum: 60 seconds
orderId
string
orderId retrieved from previous Accept Quote call
pagenumber
integer
maximum order per request is 50, any later order can be fetched by passing the page number, if page number not passed, default it will return first page