(self, order: dict, market: Market = None)
| 2257 | return self.safe_string(timeInForces, timeInForce, timeInForce) |
| 2258 | |
| 2259 | def parse_spot_order(self, order: dict, market: Market = None): |
| 2260 | # |
| 2261 | # spot |
| 2262 | # |
| 2263 | # { |
| 2264 | # "orderID": "d1d09454-cabc-4a23-89a7-59d43363f16d", |
| 2265 | # "clOrdID": "309bcd5c-9f6e-4a68-b775-4494542eb5cb", |
| 2266 | # "priceEp": 0, |
| 2267 | # "action": "New", |
| 2268 | # "trigger": "UNSPECIFIED", |
| 2269 | # "pegPriceType": "UNSPECIFIED", |
| 2270 | # "stopDirection": "UNSPECIFIED", |
| 2271 | # "bizError": 0, |
| 2272 | # "symbol": "sBTCUSDT", |
| 2273 | # "side": "Buy", |
| 2274 | # "baseQtyEv": 0, |
| 2275 | # "ordType": "Limit", |
| 2276 | # "timeInForce": "GoodTillCancel", |
| 2277 | # "ordStatus": "Created", |
| 2278 | # "cumFeeEv": 0, |
| 2279 | # "cumBaseQtyEv": 0, |
| 2280 | # "cumQuoteQtyEv": 0, |
| 2281 | # "leavesBaseQtyEv": 0, |
| 2282 | # "leavesQuoteQtyEv": 0, |
| 2283 | # "avgPriceEp": 0, |
| 2284 | # "cumBaseAmountEv": 0, |
| 2285 | # "cumQuoteAmountEv": 0, |
| 2286 | # "quoteQtyEv": 0, |
| 2287 | # "qtyType": "ByBase", |
| 2288 | # "stopPxEp": 0, |
| 2289 | # "pegOffsetValueEp": 0 |
| 2290 | # } |
| 2291 | # |
| 2292 | # { |
| 2293 | # "orderID":"99232c3e-3d6a-455f-98cc-2061cdfe91bc", |
| 2294 | # "stopPxEp":0, |
| 2295 | # "avgPriceEp":0, |
| 2296 | # "qtyType":"ByBase", |
| 2297 | # "leavesBaseQtyEv":0, |
| 2298 | # "leavesQuoteQtyEv":0, |
| 2299 | # "baseQtyEv":"1000000000", |
| 2300 | # "feeCurrency":"4", |
| 2301 | # "stopDirection":"UNSPECIFIED", |
| 2302 | # "symbol":"sETHUSDT", |
| 2303 | # "side":"Buy", |
| 2304 | # "quoteQtyEv":250000000000, |
| 2305 | # "priceEp":25000000000, |
| 2306 | # "ordType":"Limit", |
| 2307 | # "timeInForce":"GoodTillCancel", |
| 2308 | # "ordStatus":"Rejected", |
| 2309 | # "execStatus":"NewRejected", |
| 2310 | # "createTimeNs":1592675305266037130, |
| 2311 | # "cumFeeEv":0, |
| 2312 | # "cumBaseValueEv":0, |
| 2313 | # "cumQuoteValueEv":0 |
| 2314 | # } |
| 2315 | # |
| 2316 | id = self.safe_string(order, 'orderID') |
no test coverage detected