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

Method parse_order

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

Source from the content-addressed store, hash-verified

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

Callers 5

create_twap_orderMethod · 0.95
cancel_twap_orderMethod · 0.95
fetch_orderMethod · 0.95
edit_order_wsMethod · 0.95
handle_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