MCPcopy Index your code
hub / github.com/ccxt/ccxt / parseOrder

Method parseOrder

java/lib/src/main/java/io/github/ccxt/exchanges/HtxCore.java:5204–5534  ·  view source on GitHub ↗
(Object order, Object... optionalArgs)

Source from the content-addressed store, hash-verified

5202 }
5203
5204 public Object parseOrder(Object order, Object... optionalArgs)
5205 {
5206 //
5207 // spot
5208 //
5209 // {
5210 // "id": 13997833014,
5211 // "symbol": "ethbtc",
5212 // "account-id": 3398321,
5213 // "amount": "0.045000000000000000",
5214 // "price": "0.034014000000000000",
5215 // "created-at": 1545836976871,
5216 // "type": "sell-limit",
5217 // "field-amount": "0.045000000000000000", // they have fixed it for filled-amount
5218 // "field-cash-amount": "0.001530630000000000", // they have fixed it for filled-cash-amount
5219 // "field-fees": "0.000003061260000000", // they have fixed it for filled-fees
5220 // "finished-at": 1545837948214,
5221 // "source": "spot-api",
5222 // "state": "filled",
5223 // "canceled-at": 0
5224 // }
5225 //
5226 // {
5227 // "id": 20395337822,
5228 // "symbol": "ethbtc",
5229 // "account-id": 5685075,
5230 // "amount": "0.001000000000000000",
5231 // "price": "0.0",
5232 // "created-at": 1545831584023,
5233 // "type": "buy-market",
5234 // "field-amount": "0.029100000000000000", // they have fixed it for filled-amount
5235 // "field-cash-amount": "0.000999788700000000", // they have fixed it for filled-cash-amount
5236 // "field-fees": "0.000058200000000000", // they have fixed it for filled-fees
5237 // "finished-at": 1545831584181,
5238 // "source": "spot-api",
5239 // "state": "filled",
5240 // "canceled-at": 0
5241 // }
5242 //
5243 // linear swap createOrder, closePosition
5244 //
5245 // {
5246 // "order_id": "1512501029504577536",
5247 // "client_order_id": "1512501029504577536"
5248 // }
5249 //
5250 // linear swap algo createOrder
5251 //
5252 // {
5253 // "algo_id": "1512871666507657216",
5254 // "algo_client_order_id": null
5255 // }
5256 //
5257 // future and swap: fetchOrders
5258 //
5259 // {
5260 // "order_id": 773131315209248768,
5261 // "contract_code": "ADA201225",

Callers 4

fetchOrderMethod · 0.95
createOrderMethod · 0.95
cancelOrderMethod · 0.95
closePositionMethod · 0.95

Calls 15

getArgMethod · 0.95
parseOrderStatusMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
GetValueMethod · 0.95
isGreaterThanOrEqualMethod · 0.95
getIndexOfMethod · 0.95
splitMethod · 0.95
addMethod · 0.95
safeString2Method · 0.45
safeMarketMethod · 0.45
safeStringNMethod · 0.45

Tested by

no test coverage detected