bitget 0.0.78__py3-none-any.whl → 0.0.80__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.
@@ -8,7 +8,7 @@ sys.modules['ccxt'] = ccxt_module
8
8
 
9
9
  # ----------------------------------------------------------------------------
10
10
 
11
- __version__ = '4.4.97'
11
+ __version__ = '4.4.99'
12
12
 
13
13
  # ----------------------------------------------------------------------------
14
14
 
@@ -31,6 +31,7 @@ from ccxt.base.errors import NoChange # noqa: F4
31
31
  from ccxt.base.errors import MarginModeAlreadySet # noqa: F401
32
32
  from ccxt.base.errors import MarketClosed # noqa: F401
33
33
  from ccxt.base.errors import ManualInteractionNeeded # noqa: F401
34
+ from ccxt.base.errors import RestrictedLocation # noqa: F401
34
35
  from ccxt.base.errors import InsufficientFunds # noqa: F401
35
36
  from ccxt.base.errors import InvalidAddress # noqa: F401
36
37
  from ccxt.base.errors import AddressPending # noqa: F401
bitget/ccxt/pro/bitget.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, Order, OrderBook, Position, Str, Strings, Ticker, Tickers, Trade
9
+ from ccxt.base.types import Any, Balances, Bool, Int, Order, OrderBook, Position, Str, Strings, Ticker, Tickers, 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
@@ -1488,7 +1488,7 @@ class bitget(bitgetAsync):
1488
1488
  type, params = self.handle_market_type_and_params('watchMyTrades', market, params)
1489
1489
  instType = None
1490
1490
  if market is None and type == 'spot':
1491
- instType = 'SPOT'
1491
+ instType = 'spot'
1492
1492
  else:
1493
1493
  instType, params = self.get_inst_type(market, params)
1494
1494
  subscriptionHash = 'fill:' + instType
@@ -1803,7 +1803,7 @@ class bitget(bitgetAsync):
1803
1803
  future = self.safe_value(client.futures, messageHash)
1804
1804
  future.resolve(True)
1805
1805
 
1806
- def handle_error_message(self, client: Client, message):
1806
+ def handle_error_message(self, client: Client, message) -> Bool:
1807
1807
  #
1808
1808
  # {event: "error", code: 30015, msg: "Invalid sign"}
1809
1809
  #
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bitget
3
- Version: 0.0.78
3
+ Version: 0.0.80
4
4
  Summary: bitget crypto exchange api client
5
5
  Project-URL: Homepage, https://github.com/ccxt/ccxt
6
6
  Project-URL: Issues, https://github.com/ccxt/ccxt
@@ -131,6 +131,8 @@ You can also construct custom requests to available "implicit" endpoints
131
131
  - `create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
132
132
  - `create_order(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
133
133
  - `create_orders(self, orders: List[OrderRequest], params={})`
134
+ - `create_uta_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={})`
135
+ - `create_uta_orders(self, orders: List[OrderRequest], params={})`
134
136
  - `fetch_balance(self, params={})`
135
137
  - `fetch_borrow_interest(self, code: Str = None, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
136
138
  - `fetch_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
@@ -175,6 +177,7 @@ You can also construct custom requests to available "implicit" endpoints
175
177
  - `fetch_trading_fee(self, symbol: str, params={})`
176
178
  - `fetch_trading_fees(self, params={})`
177
179
  - `fetch_transfers(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
180
+ - `fetch_uta_canceled_and_closed_orders(self, symbol: Str = None, since: Int = None, limit: Int = None, params={})`
178
181
  - `fetch_uta_markets(self, params)`
179
182
  - `fetch_withdrawals(self, code: Str = None, since: Int = None, limit: Int = None, params={})`
180
183
  - `add_margin(self, symbol: str, amount: float, params={})`
@@ -183,6 +186,7 @@ You can also construct custom requests to available "implicit" endpoints
183
186
  - `cancel_all_orders(self, symbol: Str = None, params={})`
184
187
  - `cancel_order(self, id: str, symbol: Str = None, params={})`
185
188
  - `cancel_orders(self, ids, symbol: Str = None, params={})`
189
+ - `cancel_uta_orders(self, ids, symbol: Str = None, params={})`
186
190
  - `close_all_positions(self, params={})`
187
191
  - `close_position(self, symbol: str, side: OrderSide = None, params={})`
188
192
  - `describe(self)`
@@ -724,6 +728,7 @@ You can also construct custom requests to available "implicit" endpoints
724
728
  - `private_common_get_v2_common_trade_rate(request)`
725
729
  - `private_uta_get_v3_account_assets(request)`
726
730
  - `private_uta_get_v3_account_settings(request)`
731
+ - `private_uta_get_v3_account_deposit_records(request)`
727
732
  - `private_uta_get_v3_account_financial_records(request)`
728
733
  - `private_uta_get_v3_account_repayable_coins(request)`
729
734
  - `private_uta_get_v3_account_payment_coins(request)`
@@ -742,7 +747,9 @@ You can also construct custom requests to available "implicit" endpoints
742
747
  - `private_uta_get_v3_position_history_position(request)`
743
748
  - `private_uta_get_v3_trade_order_info(request)`
744
749
  - `private_uta_get_v3_trade_unfilled_orders(request)`
750
+ - `private_uta_get_v3_trade_unfilled_strategy_orders(request)`
745
751
  - `private_uta_get_v3_trade_history_orders(request)`
752
+ - `private_uta_get_v3_trade_history_strategy_orders(request)`
746
753
  - `private_uta_get_v3_trade_fills(request)`
747
754
  - `private_uta_get_v3_user_sub_list(request)`
748
755
  - `private_uta_get_v3_user_sub_api_list(request)`
@@ -754,8 +761,11 @@ You can also construct custom requests to available "implicit" endpoints
754
761
  - `private_uta_post_v3_account_max_open_available(request)`
755
762
  - `private_uta_post_v3_ins_loan_bind_uid(request)`
756
763
  - `private_uta_post_v3_trade_place_order(request)`
764
+ - `private_uta_post_v3_trade_place_strategy_order(request)`
757
765
  - `private_uta_post_v3_trade_modify_order(request)`
766
+ - `private_uta_post_v3_trade_modify_strategy_order(request)`
758
767
  - `private_uta_post_v3_trade_cancel_order(request)`
768
+ - `private_uta_post_v3_trade_cancel_strategy_order(request)`
759
769
  - `private_uta_post_v3_trade_place_batch(request)`
760
770
  - `private_uta_post_v3_trade_batch_modify_order(request)`
761
771
  - `private_uta_post_v3_trade_cancel_batch(request)`
@@ -1,11 +1,11 @@
1
1
  bitget/__init__.py,sha256=D5tG1_AjwXjMim3CPnCuWSheOXtq4vlSwVCS5ZG1bMQ,246
2
- bitget/ccxt/__init__.py,sha256=LDJKKQPL3p0epWese9NoJgBGUfH1LVoTjG6bFLVrpLI,6048
3
- bitget/ccxt/bitget.py,sha256=7IHFajA2BNw1C349M04z6YybdEz4p7rjsUXssA9CuZU,450352
4
- bitget/ccxt/abstract/bitget.py,sha256=6q34nW4J1Vfvls4tExxZRJt0Ct28hCO0TQja_Mb_bmI,99978
5
- bitget/ccxt/async_support/__init__.py,sha256=qjM5EtAtw65YFLvg_UqfraFR3UwH8D_KElIZNOfKdIA,4781
6
- bitget/ccxt/async_support/bitget.py,sha256=bmm9xyMAZ9v9uJW5BR6Sg3QBAurwz7j004Ly-HGMqQM,452095
2
+ bitget/ccxt/__init__.py,sha256=0pgPg6DgrCFnEh8cD3hxSO4H3otm26i45iyU6b_nvVk,6131
3
+ bitget/ccxt/bitget.py,sha256=81w9pmkD5NmIcTV9oLg4X758_wxcd7OVKXZt7WGZPVs,517984
4
+ bitget/ccxt/abstract/bitget.py,sha256=U3sRAK3oQJt2ujn-S0ci05HnOIHEad7CJvpDeTQfrYY,101038
5
+ bitget/ccxt/async_support/__init__.py,sha256=ROz-xONIonuAw15abbWeNTLz6AetlOQro06OvVvK90U,4864
6
+ bitget/ccxt/async_support/bitget.py,sha256=r1AJ0rQ7QMLM-cwbDRTYteohcNsRsqwBLCDSJxKdABc,519991
7
7
  bitget/ccxt/async_support/base/__init__.py,sha256=aVYSsFi--b4InRs9zDN_wtCpj8odosAB726JdUHavrk,67
8
- bitget/ccxt/async_support/base/exchange.py,sha256=dfG2PcsOXmi6SGjx29G2VVyCDI9t4qVUIUkdwrGRdio,119769
8
+ bitget/ccxt/async_support/base/exchange.py,sha256=byGHDRDag0QkyLZKSuej4Ipj_i5e-BEVEtkwVPE2ESw,119769
9
9
  bitget/ccxt/async_support/base/throttler.py,sha256=tvDVcdRUVYi8fZRlEcnqtgzcgB_KMUMRs5Pu8tuU-tU,1847
10
10
  bitget/ccxt/async_support/base/ws/__init__.py,sha256=uockzpLuwntKGZbs5EOWFe-Zg-k6Cj7GhNJLc_RX0so,1791
11
11
  bitget/ccxt/async_support/base/ws/cache.py,sha256=xf2VOtfUwloxSlIQ39M1RGZHWQzyS9IGhB5NX6cDcAc,8370
@@ -15,13 +15,13 @@ bitget/ccxt/async_support/base/ws/future.py,sha256=hjdQ42zkfju5nar0GpTLJ4zXQBtgB
15
15
  bitget/ccxt/async_support/base/ws/order_book.py,sha256=uBUaIHhzMRykpmo4BCsdJ-t_HozS6VxhEs8x-Kbj-NI,2894
16
16
  bitget/ccxt/async_support/base/ws/order_book_side.py,sha256=GhnGUt78pJ-AYL_Dq9produGjmBJLCI5FHIRdMz1O-g,6551
17
17
  bitget/ccxt/base/__init__.py,sha256=eTx1OE3HJjspFUQjGm6LBhaQiMKJnXjkdP-JUXknyQ0,1320
18
- bitget/ccxt/base/decimal_to_precision.py,sha256=XQNziSPUz4UqhIvNx0aDx6-3wSSgZBTsMX57rM7WGPM,7330
19
- bitget/ccxt/base/errors.py,sha256=MvCrL_sAM3de616T6RE0PSxiF2xV6Qqz5b1y1ghidbk,4888
20
- bitget/ccxt/base/exchange.py,sha256=xR8H49JVMf7AvDdfCAc8n-UPaVO_XU6FMsHmkEAi0ps,333932
18
+ bitget/ccxt/base/decimal_to_precision.py,sha256=3XI30u9YudHbTA438397u5rkdlXa3atxwZEfUus3C4k,6803
19
+ bitget/ccxt/base/errors.py,sha256=LdTTHPmxpeFHJze93mGl7I3maqTgN0y_1mJ6coWkXmA,4734
20
+ bitget/ccxt/base/exchange.py,sha256=gQLGpgb8TTdsXUl9_GqbubUcEtJrzCdsrXeJPZS-IoA,333932
21
21
  bitget/ccxt/base/precise.py,sha256=koce64Yrp6vFbGijJtUt-QQ6XhJgeGTCksZ871FPp_A,8886
22
22
  bitget/ccxt/base/types.py,sha256=vMQfFDVntED4YHrRJt0Q98YaM7OtGhK-DkbkqXFTYHc,11485
23
- bitget/ccxt/pro/__init__.py,sha256=XtxsziPIX3PfqWHW7SH0Y0qgYUII-Ja-g-7FvnPfKKQ,4095
24
- bitget/ccxt/pro/bitget.py,sha256=g8SkdhTze-idsChWiGIBi1twpiDfRlJyvnG2NL9VsR0,90372
23
+ bitget/ccxt/pro/__init__.py,sha256=8-dv7Tfdn-8-u447JVGKFYJrXXWVRIWYcTjcUBDNoIk,4178
24
+ bitget/ccxt/pro/bitget.py,sha256=t0wi3SrGCpHBz3jT8wLpD5bRnZhSe2PCdpFfEn2f-9w,90386
25
25
  bitget/ccxt/static_dependencies/README.md,sha256=3TCvhhn09_Cqf9BDDpao1V7EfKHDpQ6k9oWRsLFixpU,18
26
26
  bitget/ccxt/static_dependencies/__init__.py,sha256=tzFje8cloqmiIE6kola3EaYC0SnD1izWnri69hzHsSw,168
27
27
  bitget/ccxt/static_dependencies/ecdsa/__init__.py,sha256=Xaj0G79BLtBt2YZcOOMV8qOlQZ7fIJznNiHhiEEZfQA,594
@@ -281,6 +281,6 @@ bitget/ccxt/static_dependencies/toolz/curried/exceptions.py,sha256=gKFOHDIayAWnX
281
281
  bitget/ccxt/static_dependencies/toolz/curried/operator.py,sha256=ML92mknkAwzBl2NCm-4werSUmJEtSHNY9NSzhseNM9s,525
282
282
  bitget/ccxt/static_dependencies/typing_inspect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  bitget/ccxt/static_dependencies/typing_inspect/typing_inspect.py,sha256=5gIWomLPfuDpgd3gX1GlnX0MuXM3VorR4j2W2qXORiQ,28269
284
- bitget-0.0.78.dist-info/METADATA,sha256=WEza3UQNt22Nmgo5F2_JTJUwM0e5m6KFd3V_HXKX47g,44111
285
- bitget-0.0.78.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
- bitget-0.0.78.dist-info/RECORD,,
284
+ bitget-0.0.80.dist-info/METADATA,sha256=6Acbd231zadTpVcpWttvJzqQRHnko5VKx-rP3bOpZSE,44848
285
+ bitget-0.0.80.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
286
+ bitget-0.0.80.dist-info/RECORD,,