(self, order, market: Market = None)
| 2372 | return self.safe_string(sides, side, side) |
| 2373 | |
| 2374 | def parse_swap_order(self, order, market: Market = None): |
| 2375 | # |
| 2376 | # { |
| 2377 | # "bizError":0, |
| 2378 | # "orderID":"7a1ad384-44a3-4e54-a102-de4195a29e32", |
| 2379 | # "clOrdID":"", |
| 2380 | # "symbol":"ETHUSD", |
| 2381 | # "side":"Buy", |
| 2382 | # "actionTimeNs":1592668973945065381, |
| 2383 | # "transactTimeNs":0, |
| 2384 | # "orderType":"Market", |
| 2385 | # "priceEp":2267500, |
| 2386 | # "price":226.75000000, |
| 2387 | # "orderQty":1, |
| 2388 | # "displayQty":0, |
| 2389 | # "timeInForce":"ImmediateOrCancel", |
| 2390 | # "reduceOnly":false, |
| 2391 | # "closedPnlEv":0, |
| 2392 | # "closedPnl":0E-8, |
| 2393 | # "closedSize":0, |
| 2394 | # "cumQty":0, |
| 2395 | # "cumValueEv":0, |
| 2396 | # "cumValue":0E-8, |
| 2397 | # "leavesQty":1, |
| 2398 | # "leavesValueEv":11337, |
| 2399 | # "leavesValue":1.13370000, |
| 2400 | # "stopDirection":"UNSPECIFIED", |
| 2401 | # "stopPxEp":0, |
| 2402 | # "stopPx":0E-8, |
| 2403 | # "trigger":"UNSPECIFIED", |
| 2404 | # "pegOffsetValueEp":0, |
| 2405 | # "execStatus":"PendingNew", |
| 2406 | # "pegPriceType":"UNSPECIFIED", |
| 2407 | # "ordStatus":"Created", |
| 2408 | # "execInst": "ReduceOnly" |
| 2409 | # } |
| 2410 | # |
| 2411 | # usdt |
| 2412 | # { |
| 2413 | # "bizError":"0", |
| 2414 | # "orderID":"bd720dff-5647-4596-aa4e-656bac87aaad", |
| 2415 | # "clOrdID":"ccxt2022843dffac9477b497", |
| 2416 | # "symbol":"LTCUSDT", |
| 2417 | # "side":"Buy", |
| 2418 | # "actionTimeNs":"1677667878751724052", |
| 2419 | # "transactTimeNs":"1677667878754017434", |
| 2420 | # "orderType":"Limit", |
| 2421 | # "priceRp":"40", |
| 2422 | # "orderQtyRq":"0.1", |
| 2423 | # "displayQtyRq":"0.1", |
| 2424 | # "timeInForce":"GoodTillCancel", |
| 2425 | # "reduceOnly":false, |
| 2426 | # "closedPnlRv":"0", |
| 2427 | # "closedSizeRq":"0", |
| 2428 | # "cumQtyRq":"0", |
| 2429 | # "cumValueRv":"0", |
| 2430 | # "leavesQtyRq":"0.1", |
| 2431 | # "leavesValueRv":"4", |
no test coverage detected