MCPcopy Create free account
hub / github.com/ccxt/ccxt / parse_order_status

Method parse_order_status

python/ccxt/hyperliquid.py:3216–3231  ·  view source on GitHub ↗
(self, status: Str)

Source from the content-addressed store, hash-verified

3214 }, market)
3215
3216 def parse_order_status(self, status: Str):
3217 if status is None:
3218 return None
3219 statuses = {
3220 'triggered': 'open',
3221 'filled': 'closed',
3222 'open': 'open',
3223 'canceled': 'canceled',
3224 'rejected': 'rejected',
3225 'marginCanceled': 'canceled',
3226 }
3227 if status.endswith('Rejected'):
3228 return 'rejected'
3229 if status.endswith('Canceled'):
3230 return 'canceled'
3231 return self.safe_string(statuses, status, status)
3232
3233 def parse_order_type(self, status):
3234 statuses = {

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected