Privilege API name API url Method Request params Return result Note
Public Ticker https://cryptodao.com/api/ticker Get source - Source currency (str)
target - Target currency (str)
last - Latest price (float)
high - Highest price (float)
low - Floor price (float)
vol - Volume (float)
buy - First buy price (float)
sell - First sell price (float)
period = 1 day
Public Depth https://cryptodao.com/api/depth Get source - Source currency (str)
target - Target currency (str)
asks - [{price, amount}, ...] (array)
bids - [{price, amount}, ...] (array)
limit = 50
Public Trades https://cryptodao.com/api/trades Get source - Source currency (str)
target - Target currency (str)
since - Since id (int)
[
{
date: xx (int),
price: xx (float),
amount: xx (float),
tid: xx (int),
type: xx (str: buy | sell)
},
...
] (array)
limit = 100
Private Balance https://cryptodao.com/api/balance Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
{
CNY: {balance: xx, frozen: xx},
BTC: {balance: xx, frozen: xx},
...
}
Private Wallet https://cryptodao.com/api/wallet Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
target - Target currency (str)
address - Deposit address (str)
Private Orders https://cryptodao.com/api/orders Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
source - Source currency (str)
target - Target currency (str)
since - Since id (int)
type - Type (str: all | open)
[
{
id: xx (int),
datetime: xx (datetime),
type: xx (str: buy | sell),
price: xx (float),
amount: xx (float),
amount_untrade: xx (float)
},
...
] (array)
Private Fetch order https://cryptodao.com/api/fetchOrder Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
id - Order id (int)
{
id: xx (int)
datetime: xx (datetime)
type: xx (str: buy | sell)
price: xx (float)
amount: xx (float)
amount_untrade: xx (float)
status: open|closed|cancelled
trades:
[
 {
  trade_id: xx (int)
  amount: xx (float)
  price: xx (float)
  datetime: xx (datetime)
  fee: xx (float)
 }
 ...
]
}
Private Cancel order https://cryptodao.com/api/cancelOrder Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
id - Order id (int)
result: true|false (str)
message: xx (str)
Private Buy https://cryptodao.com/api/buy Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
source - Source currency (str)
target - Target currency (str)
price - Price (float)
amount - Amount (float)
result: true|false (str)
message: xx (str)
Private Sell https://cryptodao.com/api/sell Post key - API key (str)
signature - Signature (str)
nonce - Nonce (int)
source - Source currency (str)
target - Target currency (str)
price - Price (float)
amount - Amount (float)
result: true|false (str)
message: xx (str)