ccxt 4.4.80__py2.py3-none-any.whl → 4.4.85__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccxt/__init__.py +1 -5
- ccxt/abstract/blofin.py +8 -0
- ccxt/abstract/btcbox.py +1 -0
- ccxt/apex.py +21 -30
- ccxt/ascendex.py +1 -1
- ccxt/async_support/__init__.py +1 -5
- ccxt/async_support/apex.py +21 -30
- ccxt/async_support/ascendex.py +1 -1
- ccxt/async_support/base/exchange.py +26 -3
- ccxt/async_support/base/ws/cache.py +6 -1
- ccxt/async_support/bigone.py +17 -14
- ccxt/async_support/bingx.py +13 -32
- ccxt/async_support/bitfinex.py +61 -48
- ccxt/async_support/bitget.py +7 -4
- ccxt/async_support/bitrue.py +14 -32
- ccxt/async_support/bitso.py +33 -0
- ccxt/async_support/bitstamp.py +33 -0
- ccxt/async_support/blofin.py +145 -14
- ccxt/async_support/btcbox.py +25 -5
- ccxt/async_support/bybit.py +20 -39
- ccxt/async_support/cex.py +2 -4
- ccxt/async_support/coinbase.py +56 -42
- ccxt/async_support/coinbaseexchange.py +141 -32
- ccxt/async_support/coincatch.py +14 -67
- ccxt/async_support/coinex.py +28 -29
- ccxt/async_support/coinlist.py +17 -16
- ccxt/async_support/coinmetro.py +20 -11
- ccxt/async_support/coinone.py +8 -10
- ccxt/async_support/coinsph.py +124 -2
- ccxt/async_support/cryptocom.py +109 -2
- ccxt/async_support/cryptomus.py +42 -80
- ccxt/async_support/delta.py +75 -36
- ccxt/async_support/derive.py +46 -10
- ccxt/async_support/ellipx.py +175 -77
- ccxt/async_support/gate.py +1 -1
- ccxt/async_support/gemini.py +3 -4
- ccxt/async_support/hitbtc.py +56 -65
- ccxt/async_support/htx.py +2 -2
- ccxt/async_support/hyperliquid.py +15 -2
- ccxt/async_support/kraken.py +27 -23
- ccxt/async_support/kucoinfutures.py +5 -0
- ccxt/async_support/lbank.py +1 -1
- ccxt/async_support/okx.py +1 -2
- ccxt/async_support/oxfun.py +21 -1
- ccxt/async_support/paradex.py +120 -4
- ccxt/base/errors.py +6 -0
- ccxt/base/exchange.py +40 -3
- ccxt/base/types.py +3 -0
- ccxt/bigone.py +17 -14
- ccxt/bingx.py +13 -32
- ccxt/bitfinex.py +61 -48
- ccxt/bitget.py +7 -4
- ccxt/bitrue.py +14 -32
- ccxt/bitso.py +33 -0
- ccxt/bitstamp.py +33 -0
- ccxt/blofin.py +145 -14
- ccxt/btcbox.py +24 -5
- ccxt/bybit.py +20 -39
- ccxt/cex.py +2 -4
- ccxt/coinbase.py +56 -42
- ccxt/coinbaseexchange.py +141 -32
- ccxt/coincatch.py +14 -67
- ccxt/coinex.py +28 -29
- ccxt/coinlist.py +17 -16
- ccxt/coinmetro.py +20 -11
- ccxt/coinone.py +8 -10
- ccxt/coinsph.py +124 -2
- ccxt/cryptocom.py +109 -2
- ccxt/cryptomus.py +42 -80
- ccxt/delta.py +75 -36
- ccxt/derive.py +46 -10
- ccxt/ellipx.py +175 -77
- ccxt/gate.py +1 -1
- ccxt/gemini.py +3 -4
- ccxt/hitbtc.py +56 -65
- ccxt/htx.py +2 -2
- ccxt/hyperliquid.py +15 -2
- ccxt/kraken.py +27 -23
- ccxt/kucoinfutures.py +5 -0
- ccxt/lbank.py +1 -1
- ccxt/okx.py +1 -2
- ccxt/oxfun.py +21 -1
- ccxt/paradex.py +120 -4
- ccxt/pro/__init__.py +69 -3
- ccxt/pro/binance.py +31 -33
- ccxt/pro/bithumb.py +5 -3
- ccxt/pro/coinbase.py +1 -1
- ccxt/pro/hyperliquid.py +10 -2
- ccxt/pro/kraken.py +249 -79
- ccxt/pro/mexc.py +252 -7
- ccxt/pro/poloniex.py +6 -2
- {ccxt-4.4.80.dist-info → ccxt-4.4.85.dist-info}/METADATA +7 -11
- {ccxt-4.4.80.dist-info → ccxt-4.4.85.dist-info}/RECORD +96 -104
- ccxt/abstract/bl3p.py +0 -19
- ccxt/abstract/idex.py +0 -26
- ccxt/async_support/base/ws/fast_client.py +0 -97
- ccxt/async_support/bl3p.py +0 -543
- ccxt/async_support/idex.py +0 -1889
- ccxt/bl3p.py +0 -543
- ccxt/idex.py +0 -1889
- ccxt/pro/idex.py +0 -687
- {ccxt-4.4.80.dist-info → ccxt-4.4.85.dist-info}/LICENSE.txt +0 -0
- {ccxt-4.4.80.dist-info → ccxt-4.4.85.dist-info}/WHEEL +0 -0
- {ccxt-4.4.80.dist-info → ccxt-4.4.85.dist-info}/top_level.txt +0 -0
ccxt/pro/binance.py
CHANGED
@@ -718,7 +718,7 @@ class binance(ccxt.async_support.binance):
|
|
718
718
|
"""
|
719
719
|
fetches information on open orders with bid(buy) and ask(sell) prices, volumes and other data
|
720
720
|
|
721
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
721
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#order-book
|
722
722
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/market-data/websocket-api/Order-Book
|
723
723
|
|
724
724
|
:param str symbol: unified symbol of the market to fetch the order book for
|
@@ -868,10 +868,8 @@ class binance(ccxt.async_support.binance):
|
|
868
868
|
# ]
|
869
869
|
# }
|
870
870
|
#
|
871
|
-
|
872
|
-
|
873
|
-
isSpot = isTestnetSpot or isSpotMainNet
|
874
|
-
marketType = 'spot' if isSpot else 'contract'
|
871
|
+
isSpot = (client.url.find('/stream') > -1)
|
872
|
+
marketType = 'spot' if (isSpot) else 'contract'
|
875
873
|
marketId = self.safe_string(message, 's')
|
876
874
|
market = self.safe_market(marketId, None, None, marketType)
|
877
875
|
symbol = market['symbol']
|
@@ -984,8 +982,8 @@ class binance(ccxt.async_support.binance):
|
|
984
982
|
"""
|
985
983
|
get the list of most recent trades for a list of symbols
|
986
984
|
|
987
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
988
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
985
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#aggregate-trades
|
986
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#recent-trades
|
989
987
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
990
988
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
991
989
|
|
@@ -1042,8 +1040,8 @@ class binance(ccxt.async_support.binance):
|
|
1042
1040
|
"""
|
1043
1041
|
unsubscribes from the trades channel
|
1044
1042
|
|
1045
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1046
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1043
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#aggregate-trades
|
1044
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#recent-trades
|
1047
1045
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1048
1046
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1049
1047
|
|
@@ -1100,8 +1098,8 @@ class binance(ccxt.async_support.binance):
|
|
1100
1098
|
"""
|
1101
1099
|
unsubscribes from the trades channel
|
1102
1100
|
|
1103
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1104
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1101
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#aggregate-trades
|
1102
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#recent-trades
|
1105
1103
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1106
1104
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1107
1105
|
|
@@ -1117,8 +1115,8 @@ class binance(ccxt.async_support.binance):
|
|
1117
1115
|
"""
|
1118
1116
|
get the list of most recent trades for a particular symbol
|
1119
1117
|
|
1120
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1121
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1118
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#aggregate-trades
|
1119
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#recent-trades
|
1122
1120
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1123
1121
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Aggregate-Trade-Streams
|
1124
1122
|
|
@@ -1290,7 +1288,7 @@ class binance(ccxt.async_support.binance):
|
|
1290
1288
|
def handle_trade(self, client: Client, message):
|
1291
1289
|
# the trade streams push raw trade information in real-time
|
1292
1290
|
# each trade has a unique buyer and seller
|
1293
|
-
isSpot = (
|
1291
|
+
isSpot = (client.url.find('/stream') > -1)
|
1294
1292
|
marketType = 'spot' if (isSpot) else 'contract'
|
1295
1293
|
marketId = self.safe_string(message, 's')
|
1296
1294
|
market = self.safe_market(marketId, None, None, marketType)
|
@@ -1309,7 +1307,7 @@ class binance(ccxt.async_support.binance):
|
|
1309
1307
|
"""
|
1310
1308
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1311
1309
|
|
1312
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1310
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#klines
|
1313
1311
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1314
1312
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1315
1313
|
|
@@ -1332,7 +1330,7 @@ class binance(ccxt.async_support.binance):
|
|
1332
1330
|
"""
|
1333
1331
|
watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1334
1332
|
|
1335
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1333
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#klines
|
1336
1334
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1337
1335
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1338
1336
|
|
@@ -1394,7 +1392,7 @@ class binance(ccxt.async_support.binance):
|
|
1394
1392
|
"""
|
1395
1393
|
unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1396
1394
|
|
1397
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1395
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#klines
|
1398
1396
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1399
1397
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1400
1398
|
|
@@ -1458,7 +1456,7 @@ class binance(ccxt.async_support.binance):
|
|
1458
1456
|
"""
|
1459
1457
|
unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1460
1458
|
|
1461
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1459
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#klines
|
1462
1460
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1463
1461
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/Kline-Candlestick-Streams
|
1464
1462
|
|
@@ -1523,7 +1521,7 @@ class binance(ccxt.async_support.binance):
|
|
1523
1521
|
self.safe_float(kline, 'c'),
|
1524
1522
|
self.safe_float(kline, 'v'),
|
1525
1523
|
]
|
1526
|
-
isSpot = (
|
1524
|
+
isSpot = (client.url.find('/stream') > -1)
|
1527
1525
|
marketType = 'spot' if (isSpot) else 'contract'
|
1528
1526
|
symbol = self.safe_symbol(marketId, None, None, marketType)
|
1529
1527
|
messageHash = 'ohlcv::' + symbol + '::' + unifiedTimeframe
|
@@ -1578,7 +1576,7 @@ class binance(ccxt.async_support.binance):
|
|
1578
1576
|
"""
|
1579
1577
|
query historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
1580
1578
|
|
1581
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1579
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#klines
|
1582
1580
|
|
1583
1581
|
:param str symbol: unified symbol of the market to query OHLCV data for
|
1584
1582
|
:param str timeframe: the length of time each candle represents
|
@@ -1844,7 +1842,7 @@ class binance(ccxt.async_support.binance):
|
|
1844
1842
|
"""
|
1845
1843
|
watches best bid & ask for symbols
|
1846
1844
|
|
1847
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
1845
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#symbol-order-book-ticker
|
1848
1846
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
|
1849
1847
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/websocket-market-streams/All-Book-Tickers-Stream
|
1850
1848
|
|
@@ -2123,7 +2121,7 @@ class binance(ccxt.async_support.binance):
|
|
2123
2121
|
self.handle_tickers_and_bids_asks(client, message, 'tickers')
|
2124
2122
|
|
2125
2123
|
def handle_tickers_and_bids_asks(self, client: Client, message, methodType):
|
2126
|
-
isSpot = (
|
2124
|
+
isSpot = (client.url.find('/stream') > -1)
|
2127
2125
|
marketType = 'spot' if (isSpot) else 'contract'
|
2128
2126
|
isBidAsk = (methodType == 'bidasks')
|
2129
2127
|
channelName = None
|
@@ -2335,7 +2333,7 @@ class binance(ccxt.async_support.binance):
|
|
2335
2333
|
fetch balance and get the amount of funds available for trading or funds locked in orders
|
2336
2334
|
|
2337
2335
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/account/websocket-api/Futures-Account-Balance
|
2338
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
2336
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/account-requests#account-information-user_data
|
2339
2337
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/account/websocket-api
|
2340
2338
|
|
2341
2339
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -2682,7 +2680,7 @@ class binance(ccxt.async_support.binance):
|
|
2682
2680
|
"""
|
2683
2681
|
create a trade order
|
2684
2682
|
|
2685
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
2683
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#place-new-order-trade
|
2686
2684
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/New-Order
|
2687
2685
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api
|
2688
2686
|
|
@@ -2827,7 +2825,7 @@ class binance(ccxt.async_support.binance):
|
|
2827
2825
|
"""
|
2828
2826
|
edit a trade order
|
2829
2827
|
|
2830
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
2828
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#cancel-and-replace-order-trade
|
2831
2829
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Modify-Order
|
2832
2830
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Modify-Order
|
2833
2831
|
|
@@ -2980,7 +2978,7 @@ class binance(ccxt.async_support.binance):
|
|
2980
2978
|
"""
|
2981
2979
|
cancel multiple orders
|
2982
2980
|
|
2983
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
2981
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#cancel-order-trade
|
2984
2982
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Cancel-Order
|
2985
2983
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Cancel-Order
|
2986
2984
|
|
@@ -3024,7 +3022,7 @@ class binance(ccxt.async_support.binance):
|
|
3024
3022
|
"""
|
3025
3023
|
cancel all open orders in a market
|
3026
3024
|
|
3027
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3025
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#cancel-open-orders-trade
|
3028
3026
|
|
3029
3027
|
:param str [symbol]: unified market symbol of the market to cancel orders in
|
3030
3028
|
:param dict [params]: extra parameters specific to the exchange API endpoint
|
@@ -3058,7 +3056,7 @@ class binance(ccxt.async_support.binance):
|
|
3058
3056
|
"""
|
3059
3057
|
fetches information on an order made by the user
|
3060
3058
|
|
3061
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3059
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#query-order-user_data
|
3062
3060
|
https://developers.binance.com/docs/derivatives/usds-margined-futures/trade/websocket-api/Query-Order
|
3063
3061
|
https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/websocket-api/Query-Order
|
3064
3062
|
|
@@ -3102,7 +3100,7 @@ class binance(ccxt.async_support.binance):
|
|
3102
3100
|
"""
|
3103
3101
|
fetches information on multiple orders made by the user
|
3104
3102
|
|
3105
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3103
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#order-lists
|
3106
3104
|
|
3107
3105
|
:param str symbol: unified market symbol of the market orders were made in
|
3108
3106
|
:param int|None [since]: the earliest time in ms to fetch orders for
|
@@ -3145,7 +3143,7 @@ class binance(ccxt.async_support.binance):
|
|
3145
3143
|
"""
|
3146
3144
|
fetch closed orders
|
3147
3145
|
|
3148
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3146
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#order-lists
|
3149
3147
|
|
3150
3148
|
:param str symbol: unified market symbol
|
3151
3149
|
:param int [since]: the earliest time in ms to fetch open orders for
|
@@ -3165,7 +3163,7 @@ class binance(ccxt.async_support.binance):
|
|
3165
3163
|
"""
|
3166
3164
|
fetch all unfilled currently open orders
|
3167
3165
|
|
3168
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3166
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/trading-requests#current-open-orders-user_data
|
3169
3167
|
|
3170
3168
|
:param str symbol: unified market symbol
|
3171
3169
|
:param int|None [since]: the earliest time in ms to fetch open orders for
|
@@ -3686,7 +3684,7 @@ class binance(ccxt.async_support.binance):
|
|
3686
3684
|
"""
|
3687
3685
|
fetch all trades made by the user
|
3688
3686
|
|
3689
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3687
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/account-requests#account-trade-history-user_data
|
3690
3688
|
|
3691
3689
|
:param str symbol: unified market symbol
|
3692
3690
|
:param int|None [since]: the earliest time in ms to fetch trades for
|
@@ -3734,7 +3732,7 @@ class binance(ccxt.async_support.binance):
|
|
3734
3732
|
"""
|
3735
3733
|
fetch all trades made by the user
|
3736
3734
|
|
3737
|
-
https://developers.binance.com/docs/binance-spot-api-docs/
|
3735
|
+
https://developers.binance.com/docs/binance-spot-api-docs/websocket-api/market-data-requests#recent-trades
|
3738
3736
|
|
3739
3737
|
:param str symbol: unified market symbol
|
3740
3738
|
:param int [since]: the earliest time in ms to fetch trades for
|
ccxt/pro/bithumb.py
CHANGED
@@ -323,18 +323,20 @@ class bithumb(ccxt.async_support.bithumb):
|
|
323
323
|
# "contPrice" : "10579000",
|
324
324
|
# "contQty" : "0.01",
|
325
325
|
# "contAmt" : "105790.00",
|
326
|
-
# "contDtm" : "2020-01-29 12:24:18.
|
326
|
+
# "contDtm" : "2020-01-29 12:24:18.830038",
|
327
327
|
# "updn" : "dn"
|
328
328
|
# }
|
329
329
|
#
|
330
330
|
marketId = self.safe_string(trade, 'symbol')
|
331
331
|
datetime = self.safe_string(trade, 'contDtm')
|
332
|
+
# that date is not UTC iso8601, but exchange's local time, -9hr difference
|
333
|
+
timestamp = self.parse8601(datetime) - 32400000
|
332
334
|
sideId = self.safe_string(trade, 'buySellGb')
|
333
335
|
return self.safe_trade({
|
334
336
|
'id': None,
|
335
337
|
'info': trade,
|
336
|
-
'timestamp':
|
337
|
-
'datetime':
|
338
|
+
'timestamp': timestamp,
|
339
|
+
'datetime': self.iso8601(timestamp),
|
338
340
|
'symbol': self.safe_symbol(marketId, market, '_'),
|
339
341
|
'order': None,
|
340
342
|
'type': None,
|
ccxt/pro/coinbase.py
CHANGED
ccxt/pro/hyperliquid.py
CHANGED
@@ -103,7 +103,11 @@ class hyperliquid(ccxt.async_support.hyperliquid):
|
|
103
103
|
await self.load_markets()
|
104
104
|
order, globalParams = self.parseCreateEditOrderArgs(None, symbol, type, side, amount, price, params)
|
105
105
|
orders = await self.create_orders_ws([order], globalParams)
|
106
|
-
|
106
|
+
parsedOrder = orders[0]
|
107
|
+
orderInfo = self.safe_dict(parsedOrder, 'info')
|
108
|
+
# handle potential error here
|
109
|
+
self.handle_errors(None, None, None, None, None, self.json(orderInfo), orderInfo, None, None)
|
110
|
+
return parsedOrder
|
107
111
|
|
108
112
|
async def edit_order_ws(self, id: str, symbol: str, type: str, side: str, amount: Num = None, price: Num = None, params={}):
|
109
113
|
"""
|
@@ -140,7 +144,11 @@ class hyperliquid(ccxt.async_support.hyperliquid):
|
|
140
144
|
dataObject = self.safe_dict(responseObject, 'data', {})
|
141
145
|
statuses = self.safe_list(dataObject, 'statuses', [])
|
142
146
|
first = self.safe_dict(statuses, 0, {})
|
143
|
-
|
147
|
+
parsedOrder = self.parse_order(first, market)
|
148
|
+
orderInfo = self.safe_dict(parsedOrder, 'info')
|
149
|
+
# handle potential error here
|
150
|
+
self.handle_errors(None, None, None, None, None, self.json(orderInfo), orderInfo, None, None)
|
151
|
+
return parsedOrder
|
144
152
|
|
145
153
|
async def watch_order_book(self, symbol: str, limit: Int = None, params={}) -> OrderBook:
|
146
154
|
"""
|