Commit b3310bc9 authored by 1486327116's avatar 1486327116

format

parent 157852e2
......@@ -36,6 +36,8 @@ export const getPairFromCore = async(symbol,market="spot")=> {
return data[0]
}
// res:
// [{"name":"BTC","asset":1,"balance":"10","holds":"0"}]
export const getUserAccountFromCore = async(userId,withName = true)=> {
const url = `${webadmin_endpoint}/account/list?user_id=${userId}`
let { data } = await axios.get(url);
......@@ -65,14 +67,16 @@ export const getUserAccountFromCore = async(userId,withName = true)=> {
return data;
}
// user_id
// status, // 必须 unsettled或者settled
// symbol, // 可选,交易对
// start_time, // 成交时间
// end_time, // 成交时间
// before, // update_id
// after, // update_id
// limit, / 数量
// user_id
// status, // 必须 unsettled或者settled
// symbol, // 可选,交易对
// start_time, // 成交时间
// end_time, // 成交时间
// before, // update_id
// after, // update_id
// limit, / 数量
// res:
// [{"orderId":"4611689316962271233","clientOrderId":"","createTime":"1725261917795","product":"BTC_USDT","type":1,"side":"buy","quantity":"1","stf":"disabled","price":"9999.0000","visibleQty":"1","timeInForce":"gtc","cancelAfter":0,"postOnly":false,"status":"accepted","executedQty":"0","fillCount":0,"fills":[],"fees":[],"updateTime":"1725261917795"},{"orderId":"4611689316962271234","clientOrderId":"","createTime":"1725261919337","product":"BTC_USDT","type":1,"side":"buy","quantity":"1","stf":"disabled","price":"9998.0000","visibleQty":"1","timeInForce":"gtc","cancelAfter":0,"postOnly":false,"status":"accepted","executedQty":"0","fillCount":0,"fills":[],"fees":[],"updateTime":"1725261919337"}]
export const getUserOrdersFromCore = async(params)=> {
// let params = new URLSearchParams();
const url = `${webadmin_endpoint}/order/list`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment