(order: Dict, market: Market = undefined)
| 2331 | } |
| 2332 | |
| 2333 | parseSpotOrder (order: Dict, market: Market = undefined) { |
| 2334 | // |
| 2335 | // spot |
| 2336 | // |
| 2337 | // { |
| 2338 | // "orderID": "d1d09454-cabc-4a23-89a7-59d43363f16d", |
| 2339 | // "clOrdID": "309bcd5c-9f6e-4a68-b775-4494542eb5cb", |
| 2340 | // "priceEp": 0, |
| 2341 | // "action": "New", |
| 2342 | // "trigger": "UNSPECIFIED", |
| 2343 | // "pegPriceType": "UNSPECIFIED", |
| 2344 | // "stopDirection": "UNSPECIFIED", |
| 2345 | // "bizError": 0, |
| 2346 | // "symbol": "sBTCUSDT", |
| 2347 | // "side": "Buy", |
| 2348 | // "baseQtyEv": 0, |
| 2349 | // "ordType": "Limit", |
| 2350 | // "timeInForce": "GoodTillCancel", |
| 2351 | // "ordStatus": "Created", |
| 2352 | // "cumFeeEv": 0, |
| 2353 | // "cumBaseQtyEv": 0, |
| 2354 | // "cumQuoteQtyEv": 0, |
| 2355 | // "leavesBaseQtyEv": 0, |
| 2356 | // "leavesQuoteQtyEv": 0, |
| 2357 | // "avgPriceEp": 0, |
| 2358 | // "cumBaseAmountEv": 0, |
| 2359 | // "cumQuoteAmountEv": 0, |
| 2360 | // "quoteQtyEv": 0, |
| 2361 | // "qtyType": "ByBase", |
| 2362 | // "stopPxEp": 0, |
| 2363 | // "pegOffsetValueEp": 0 |
| 2364 | // } |
| 2365 | // |
| 2366 | // { |
| 2367 | // "orderID":"99232c3e-3d6a-455f-98cc-2061cdfe91bc", |
| 2368 | // "stopPxEp":0, |
| 2369 | // "avgPriceEp":0, |
| 2370 | // "qtyType":"ByBase", |
| 2371 | // "leavesBaseQtyEv":0, |
| 2372 | // "leavesQuoteQtyEv":0, |
| 2373 | // "baseQtyEv":"1000000000", |
| 2374 | // "feeCurrency":"4", |
| 2375 | // "stopDirection":"UNSPECIFIED", |
| 2376 | // "symbol":"sETHUSDT", |
| 2377 | // "side":"Buy", |
| 2378 | // "quoteQtyEv":250000000000, |
| 2379 | // "priceEp":25000000000, |
| 2380 | // "ordType":"Limit", |
| 2381 | // "timeInForce":"GoodTillCancel", |
| 2382 | // "ordStatus":"Rejected", |
| 2383 | // "execStatus":"NewRejected", |
| 2384 | // "createTimeNs":1592675305266037130, |
| 2385 | // "cumFeeEv":0, |
| 2386 | // "cumBaseValueEv":0, |
| 2387 | // "cumQuoteValueEv":0 |
| 2388 | // } |
| 2389 | // |
| 2390 | const id = this.safeString (order, 'orderID'); |
no test coverage detected