mock queryStrategiesMetrics

This commit is contained in:
Jun Su 2022-06-15 18:55:51 +08:00
parent 3faf389d80
commit 9d2082d985

View File

@ -130,3 +130,31 @@ export function queryTradingVolume(params, cb) {
cb(response.data.tradingVolumes || []);
});
}
export async function queryStrategiesMetrics() {
return (
[
{
"id":"uuid",
"instanceID": "testInstanceID",
"strategy": "grid",
"grid": {
"symbol": "BTCUSDT",
},
"stats": {
"oneDayArbs": 0,
"totalArbs": 3,
"investment": 100,
"totalProfits": 5.6,
"gridProfits": 2.5,
"floatingPNL": 3.1,
"currentPrice": 29000,
"lowestPrice": 25000,
"highestPrice": 35000
},
"status": "RUNNING",
"startTime": 1654938187102
}
]
)
}