取得交易對的當前市場價格
get
https://api.cryptomus.com/v2/user-api/exchange/markets/price
要求
查詢參數
姓名 | 參數類型 | 定義 |
---|---|---|
symbol* | string | 交易對符號 |
參數類型
string定義
交易對符號
* - 必需參數
回應範例
1{
2 "price": "100308.94" // current asset price
3}
複製可能的程式碼
404:未找到使用者或資源
422:無效的輸入數據
500:內部伺服器錯誤
可能的錯誤
範例回覆:
1{
2 "state": 0,
3 "message": "Standard validation error"
4}
複製錯誤回應範例
1{
2 "code": 0,
3 "message": "Validation failed.",
4 "errors": [
5 {
6 "property": "symbol",
7 "value": null,
8 "message": "This value should not be blank."
9 }
10 ]
11}
複製