okx-exchange 0.0.80__py3-none-any.whl → 0.0.81__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.
okx/ccxt/__init__.py CHANGED
@@ -26,7 +26,7 @@ sys.modules['ccxt'] = ccxt_module
26
26
 
27
27
  # ----------------------------------------------------------------------------
28
28
 
29
- __version__ = '4.4.98'
29
+ __version__ = '4.4.99'
30
30
 
31
31
  # ----------------------------------------------------------------------------
32
32
 
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.98'
11
+ __version__ = '4.4.99'
12
12
 
13
13
  # -----------------------------------------------------------------------------
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # -----------------------------------------------------------------------------
4
4
 
5
- __version__ = '4.4.98'
5
+ __version__ = '4.4.99'
6
6
 
7
7
  # -----------------------------------------------------------------------------
8
8
 
okx/ccxt/base/errors.py CHANGED
@@ -1,9 +1,3 @@
1
- # ----------------------------------------------------------------------------
2
-
3
- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- # EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
1
  error_hierarchy = {
8
2
  'BaseError': {
9
3
  'ExchangeError': {
okx/ccxt/base/exchange.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # -----------------------------------------------------------------------------
6
6
 
7
- __version__ = '4.4.98'
7
+ __version__ = '4.4.99'
8
8
 
9
9
  # -----------------------------------------------------------------------------
10
10
 
okx/ccxt/pro/__init__.py CHANGED
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.98'
11
+ __version__ = '4.4.99'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
okx/ccxt/pro/okx.py CHANGED
@@ -6,7 +6,7 @@
6
6
  import ccxt.async_support
7
7
  from ccxt.async_support.base.ws.cache import ArrayCache, ArrayCacheBySymbolById, ArrayCacheBySymbolBySide, ArrayCacheByTimestamp
8
8
  import hashlib
9
- from ccxt.base.types import Any, Balances, Int, Liquidation, Num, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade
9
+ from ccxt.base.types import Any, Balances, Bool, Int, Liquidation, Num, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, FundingRate, FundingRates, Trade
10
10
  from ccxt.async_support.base.ws.client import Client
11
11
  from typing import List
12
12
  from ccxt.base.errors import ExchangeError
@@ -621,7 +621,7 @@ class okx(okxAsync):
621
621
  'info': ticker,
622
622
  }, market)
623
623
 
624
- async def watch_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
624
+ async def watch_liquidations_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
625
625
  """
626
626
  watch the public liquidations of a trading pair
627
627
 
@@ -709,7 +709,7 @@ class okx(okxAsync):
709
709
  client.resolve([liquidation], 'liquidations')
710
710
  client.resolve([liquidation], 'liquidations::' + symbol)
711
711
 
712
- async def watch_my_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
712
+ async def watch_my_liquidations_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={}) -> List[Liquidation]:
713
713
  """
714
714
  watch the private liquidations of a trading pair
715
715
 
@@ -2133,7 +2133,7 @@ class okx(okxAsync):
2133
2133
  client.lastPong = self.milliseconds()
2134
2134
  return message
2135
2135
 
2136
- def handle_error_message(self, client: Client, message):
2136
+ def handle_error_message(self, client: Client, message) -> Bool:
2137
2137
  #
2138
2138
  # {event: 'error', msg: "Illegal request: {"op":"subscribe","args":["spot/ticker:BTC-USDT"]}", code: "60012"}
2139
2139
  # {event: 'error", msg: "channel:ticker,instId:BTC-USDT doesn"t exist", code: "60018"}
@@ -2175,7 +2175,7 @@ class okx(okxAsync):
2175
2175
  return False
2176
2176
  client.reject(e)
2177
2177
  return False
2178
- return message
2178
+ return True
2179
2179
 
2180
2180
  def handle_message(self, client: Client, message):
2181
2181
  if not self.handle_error_message(client, message):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: okx-exchange
3
- Version: 0.0.80
3
+ Version: 0.0.81
4
4
  Summary: okx crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -586,8 +586,8 @@ You can also construct custom requests to available "implicit" endpoints
586
586
  - `watch_mark_prices(self, symbols: Strings = None, params={})`
587
587
  - `un_watch_tickers(self, symbols: Strings = None, params={})`
588
588
  - `watch_bids_asks(self, symbols: Strings = None, params={})`
589
- - `watch_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={})`
590
- - `watch_my_liquidations_for_symbols(self, symbols: List[str] = None, since: Int = None, limit: Int = None, params={})`
589
+ - `watch_liquidations_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={})`
590
+ - `watch_my_liquidations_for_symbols(self, symbols: List[str], since: Int = None, limit: Int = None, params={})`
591
591
  - `watch_ohlcv(self, symbol: str, timeframe='1m', since: Int = None, limit: Int = None, params={})`
592
592
  - `un_watch_ohlcv(self, symbol: str, timeframe='1m', params={})`
593
593
  - `watch_ohlcv_for_symbols(self, symbolsAndTimeframes: List[List[str]], since: Int = None, limit: Int = None, params={})`
@@ -1,11 +1,11 @@
1
1
  okx/__init__.py,sha256=SLqs4d-SexaSbdW86VEbgXzMVyX9dwVlxXtQ8_Zm0T0,210
2
- okx/ccxt/__init__.py,sha256=9ZonUV1jAZhD-EUKbHjrh93lwHkg9ow2bzmKRpSqHwg,6125
2
+ okx/ccxt/__init__.py,sha256=RQnm5Kuqzp5SAdRB9RY6TpiCH6plVp6JRt3VDugMmXk,6125
3
3
  okx/ccxt/okx.py,sha256=mkTCAItKUHl_f_WqiHwOtewykXqPg0bYlBuRx_EByJk,407622
4
4
  okx/ccxt/abstract/okx.py,sha256=vf8yrYRfX1K30qzmLmTUDCRoDObSMbYX437FPKfBCXY,52434
5
- okx/ccxt/async_support/__init__.py,sha256=rYXWzEvK7iJtRYP-Ut5NwSuw1MltgL3oxHLXhf4SkPA,4858
5
+ okx/ccxt/async_support/__init__.py,sha256=JoIAZB6Z4JjWEkvHA0St5Fd2oz-0Mjj0iQ9DVGImpio,4858
6
6
  okx/ccxt/async_support/okx.py,sha256=H2Rz8PX3VfFUEIfC91fKRh6F8RRz0F-u0Ol5Ja32gMc,409341
7
7
  okx/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- okx/ccxt/async_support/base/exchange.py,sha256=h7rGS7bj1QxT69nooadJgVM1UToAauxTskymPAMf7wo,119769
8
+ okx/ccxt/async_support/base/exchange.py,sha256=byGHDRDag0QkyLZKSuej4Ipj_i5e-BEVEtkwVPE2ESw,119769
9
9
  okx/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
10
10
  okx/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
11
11
  okx/ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
@@ -16,12 +16,12 @@ okx/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_HozS
16
16
  okx/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
17
17
  okx/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
18
18
  okx/ccxt/base/decimal_to_precision.py,sha256=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
19
- okx/ccxt/base/errors.py,sha256=OGhWNvNtRlJOzFx-n1x3ZjTnaPpfWH0Vc0xACS-MeDw,5012
20
- okx/ccxt/base/exchange.py,sha256=5KgAUmwjrHelR87gaxFRZzaju7B3csvnlUzkuw6mpJE,333932
19
+ okx/ccxt/base/errors.py,sha256=LdTTHPmxpeFHJze93mGl7I3maqTgN0y_1mJ6coWkXmA,4734
20
+ okx/ccxt/base/exchange.py,sha256=gQLGpgb8TTdsXUl9_GqbubUcEtJrzCdsrXeJPZS-IoA,333932
21
21
  okx/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
22
22
  okx/ccxt/base/types.py,sha256=vMQfFDVntED4YHrRJt0Q98YaM7OtGhK-DkbkqXFTYHc,11485
23
- okx/ccxt/pro/__init__.py,sha256=vGOFNgLYy5Gbnd77CtEO6Jz8tUWi4CW8XoEqncvru7I,4172
24
- okx/ccxt/pro/okx.py,sha256=DHQ6muxmyFV7KBUoARBHg5cr03QqUAg2etYnqsplhCM,104672
23
+ okx/ccxt/pro/__init__.py,sha256=gVpDyrIJWAHVeU7vxXuWfSQbzlArQ4aIDFfvh0FyDmQ,4172
24
+ okx/ccxt/pro/okx.py,sha256=AbtjOrbs7QsesXVGHFIs4rmtq75I4Hnw74jmHTMbawg,104669
25
25
  okx/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
26
26
  okx/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
27
27
  okx/ccxt/static_dependencies/ecdsa/__init__.py,sha256=Xaj0G79BLtBt2YZcOOMV8qOlQZ7fIJznNiHhiEEZfQA,594
@@ -281,6 +281,6 @@ okx/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX2uC
281
281
  okx/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
282
282
  okx/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  okx/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
284
- okx_exchange-0.0.80.dist-info/METADATA,sha256=WAdF-7V3b0hGwjiQzbjOPTX3L1WuwgtjYZLIVrYC5-o,30563
285
- okx_exchange-0.0.80.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
- okx_exchange-0.0.80.dist-info/RECORD,,
284
+ okx_exchange-0.0.81.dist-info/METADATA,sha256=bYjq_r_xYfRaIbCQrG0lUAEUjvU0uzi-wSQuOxfbpno,30549
285
+ okx_exchange-0.0.81.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
+ okx_exchange-0.0.81.dist-info/RECORD,,