unicex 0.13.10__tar.gz → 0.13.11__tar.gz
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.
- {unicex-0.13.10/unicex.egg-info → unicex-0.13.11}/PKG-INFO +1 -1
- {unicex-0.13.10 → unicex-0.13.11}/pyproject.toml +1 -1
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/client.py +48 -21
- {unicex-0.13.10 → unicex-0.13.11/unicex.egg-info}/PKG-INFO +1 -1
- {unicex-0.13.10 → unicex-0.13.11}/LICENSE +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/README.md +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/setup.cfg +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_abc/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_abc/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_abc/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_abc/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_base/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_base/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/_base/websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/binance/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bitget/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/bybit/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/enums.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/exceptions.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/extra.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/gate/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/hyperliquid/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mapper.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PrivateAccountV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PrivateDealsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PrivateOrdersV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicAggreBookTickerV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicAggreDealsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicAggreDepthsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicBookTickerBatchV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicBookTickerV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicDealsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicFuture_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsBatchV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicLimitDepthsV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicMiniTickerV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicMiniTickersV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicSpotKlineV3Api_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PushDataV3ApiWrapper_pb2.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/__init__.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/adapter.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/exchange_info.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/uni_client.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/uni_websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/user_websocket.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/okx/websocket_manager.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/types.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex/utils.py +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex.egg-info/SOURCES.txt +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex.egg-info/dependency_links.txt +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex.egg-info/requires.txt +0 -0
- {unicex-0.13.10 → unicex-0.13.11}/unicex.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ name = "unicex"
|
|
|
4
4
|
# • PATCH (x.y.Z) → увеличивается при багфиксе, который не ломает совместимость.
|
|
5
5
|
# • MINOR (x.Y.z) → увеличивается при добавлении новой функциональности, но без ломающих изменений (backward-compatible).
|
|
6
6
|
# • MAJOR (X.y.z) → увеличивается при изменениях, которые ломают обратную совместимость.
|
|
7
|
-
version = "0.13.
|
|
7
|
+
version = "0.13.11"
|
|
8
8
|
|
|
9
9
|
description = "Unified Crypto Exchange API "
|
|
10
10
|
readme = "README.md"
|
|
@@ -491,42 +491,69 @@ class Client(BaseClient):
|
|
|
491
491
|
self,
|
|
492
492
|
symbol: str,
|
|
493
493
|
side: str,
|
|
494
|
-
quantity:
|
|
495
|
-
price: float,
|
|
496
|
-
stop_price: float,
|
|
497
|
-
stop_limit_price: float | None = None,
|
|
494
|
+
quantity: str,
|
|
498
495
|
list_client_order_id: str | None = None,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
496
|
+
# ABOVE ORDER
|
|
497
|
+
above_type: str = "TAKE_PROFIT_LIMIT",
|
|
498
|
+
above_client_order_id: str | None = None,
|
|
499
|
+
above_price: str | None = None,
|
|
500
|
+
above_stop_price: str | None = None,
|
|
501
|
+
above_trailing_delta: int | None = None,
|
|
502
|
+
above_time_in_force: str | None = None,
|
|
503
|
+
above_iceberg_qty: str | None = None,
|
|
504
|
+
above_strategy_id: int | None = None,
|
|
505
|
+
above_strategy_type: int | None = None,
|
|
506
|
+
# BELOW ORDER
|
|
507
|
+
below_type: str = "STOP_LOSS_LIMIT",
|
|
508
|
+
below_client_order_id: str | None = None,
|
|
509
|
+
below_price: str | None = None,
|
|
510
|
+
below_stop_price: str | None = None,
|
|
511
|
+
below_trailing_delta: int | None = None,
|
|
512
|
+
below_time_in_force: str | None = None,
|
|
513
|
+
below_iceberg_qty: str | None = None,
|
|
514
|
+
below_strategy_id: int | None = None,
|
|
515
|
+
below_strategy_type: int | None = None,
|
|
516
|
+
# EXTRA
|
|
502
517
|
new_order_resp_type: str | None = None,
|
|
503
518
|
self_trade_prevention_mode: str | None = None,
|
|
504
|
-
limit_iceberg_qty: float | None = None,
|
|
505
|
-
stop_iceberg_qty: float | None = None,
|
|
506
519
|
) -> dict:
|
|
507
|
-
"""Создание OCO
|
|
520
|
+
"""Создание OCO ордера (новая версия).
|
|
508
521
|
|
|
509
|
-
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/
|
|
522
|
+
https://developers.binance.com/docs/binance-spot-api-docs/rest-api/trading-endpoints#new-order-list---oco-trade
|
|
510
523
|
"""
|
|
511
|
-
url = self._BASE_SPOT_URL + "/api/v3/
|
|
524
|
+
url = self._BASE_SPOT_URL + "/api/v3/orderList/oco"
|
|
525
|
+
|
|
512
526
|
data = {
|
|
513
527
|
"symbol": symbol,
|
|
514
528
|
"side": side,
|
|
515
529
|
"quantity": quantity,
|
|
516
|
-
"price": price,
|
|
517
|
-
"stopPrice": stop_price,
|
|
518
|
-
"stopLimitPrice": stop_limit_price,
|
|
519
530
|
"listClientOrderId": list_client_order_id,
|
|
520
|
-
|
|
521
|
-
"
|
|
522
|
-
"
|
|
531
|
+
# ABOVE
|
|
532
|
+
"aboveType": above_type,
|
|
533
|
+
"aboveClientOrderId": above_client_order_id,
|
|
534
|
+
"abovePrice": above_price,
|
|
535
|
+
"aboveStopPrice": above_stop_price,
|
|
536
|
+
"aboveTrailingDelta": above_trailing_delta,
|
|
537
|
+
"aboveTimeInForce": above_time_in_force,
|
|
538
|
+
"aboveIcebergQty": above_iceberg_qty,
|
|
539
|
+
"aboveStrategyId": above_strategy_id,
|
|
540
|
+
"aboveStrategyType": above_strategy_type,
|
|
541
|
+
# BELOW
|
|
542
|
+
"belowType": below_type,
|
|
543
|
+
"belowClientOrderId": below_client_order_id,
|
|
544
|
+
"belowPrice": below_price,
|
|
545
|
+
"belowStopPrice": below_stop_price,
|
|
546
|
+
"belowTrailingDelta": below_trailing_delta,
|
|
547
|
+
"belowTimeInForce": below_time_in_force,
|
|
548
|
+
"belowIcebergQty": below_iceberg_qty,
|
|
549
|
+
"belowStrategyId": below_strategy_id,
|
|
550
|
+
"belowStrategyType": below_strategy_type,
|
|
551
|
+
# EXTRA
|
|
523
552
|
"newOrderRespType": new_order_resp_type,
|
|
524
553
|
"selfTradePreventionMode": self_trade_prevention_mode,
|
|
525
|
-
"limitIcebergQty": limit_iceberg_qty,
|
|
526
|
-
"stopIcebergQty": stop_iceberg_qty,
|
|
527
554
|
}
|
|
528
555
|
|
|
529
|
-
return await self._make_request("POST", url, True,
|
|
556
|
+
return await self._make_request("POST", url, True, params=data)
|
|
530
557
|
|
|
531
558
|
async def oco_order_cancel(
|
|
532
559
|
self,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicAggreBookTickerV3Api_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicBookTickerBatchV3Api_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsBatchV3Api_pb2.py
RENAMED
|
File without changes
|
{unicex-0.13.10 → unicex-0.13.11}/unicex/mexc/_spot_ws_proto/PublicIncreaseDepthsV3Api_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|