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

Method parse_order

python/ccxt/hyperliquid.py:3061–3214  ·  view source on GitHub ↗
(self, order: dict, market: Market = None)

Source from the content-addressed store, hash-verified

3059 return self.parse_order(data, market)
3060
3061 def parse_order(self, order: dict, market: Market = None) -> Order:
3062 #
3063 # createOrdersWs error
3064 #
3065 # {error: 'Insufficient margin to place order. asset=159'}
3066 #
3067 # fetchOpenOrders
3068 #
3069 # {
3070 # "coin": "ETH",
3071 # "limitPx": "2000.0",
3072 # "oid": 3991946565,
3073 # "origSz": "0.1",
3074 # "side": "B",
3075 # "sz": "0.1",
3076 # "timestamp": 1704346468838
3077 # }
3078 # fetchClosedorders
3079 # {
3080 # "cloid": null,
3081 # "closedPnl": "0.0",
3082 # "coin": "SOL",
3083 # "crossed": True,
3084 # "dir": "Open Long",
3085 # "fee": "0.003879",
3086 # "hash": "0x4a2647998682b7f07bc5040ab531e1011400f9a51bfa0346a0b41ebe510e8875",
3087 # "liquidationMarkPx": null,
3088 # "oid": "6463280784",
3089 # "px": "110.83",
3090 # "side": "B",
3091 # "startPosition": "1.64",
3092 # "sz": "0.1",
3093 # "tid": "232174667018988",
3094 # "time": "1709142268394"
3095 # }
3096 #
3097 # fetchOrder
3098 #
3099 # {
3100 # "order": {
3101 # "children": [],
3102 # "cloid": null,
3103 # "coin": "ETH",
3104 # "isPositionTpsl": False,
3105 # "isTrigger": False,
3106 # "limitPx": "2000.0",
3107 # "oid": "3991946565",
3108 # "orderType": "Limit",
3109 # "origSz": "0.1",
3110 # "reduceOnly": False,
3111 # "side": "B",
3112 # "sz": "0.1",
3113 # "tif": "Gtc",
3114 # "timestamp": "1704346468838",
3115 # "triggerCondition": "N/A",
3116 # "triggerPx": "0.0"
3117 # },
3118 # "status": "open",

Callers 3

create_twap_orderMethod · 0.95
cancel_twap_orderMethod · 0.95
fetch_orderMethod · 0.95

Calls 15

coin_to_market_idMethod · 0.95
parse_order_typeMethod · 0.95
parse_order_statusMethod · 0.95
safe_stringMethod · 0.80
safe_orderMethod · 0.80
safe_dict_nMethod · 0.80
safe_dictMethod · 0.80
safe_integerMethod · 0.80
safe_string_2Method · 0.80
safe_string_upperMethod · 0.80
safe_numberMethod · 0.80
safe_boolMethod · 0.80

Tested by

no test coverage detected