unicex 0.14.7__py3-none-any.whl → 0.14.9__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.
- unicex/bybit/client.py +33 -33
- {unicex-0.14.7.dist-info → unicex-0.14.9.dist-info}/METADATA +1 -1
- {unicex-0.14.7.dist-info → unicex-0.14.9.dist-info}/RECORD +6 -6
- {unicex-0.14.7.dist-info → unicex-0.14.9.dist-info}/WHEEL +0 -0
- {unicex-0.14.7.dist-info → unicex-0.14.9.dist-info}/licenses/LICENSE +0 -0
- {unicex-0.14.7.dist-info → unicex-0.14.9.dist-info}/top_level.txt +0 -0
unicex/bybit/client.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Any, Literal
|
|
|
6
6
|
|
|
7
7
|
from unicex._base import BaseClient
|
|
8
8
|
from unicex.exceptions import NotAuthorized
|
|
9
|
-
from unicex.types import
|
|
9
|
+
from unicex.types import RequestMethod
|
|
10
10
|
from unicex.utils import dict_to_query_string, filter_params, generate_hmac_sha256_signature
|
|
11
11
|
|
|
12
12
|
|
|
@@ -588,31 +588,31 @@ class Client(BaseClient):
|
|
|
588
588
|
symbol: str,
|
|
589
589
|
side: Literal["Buy", "Sell"],
|
|
590
590
|
order_type: Literal["Market", "Limit"],
|
|
591
|
-
qty:
|
|
591
|
+
qty: str,
|
|
592
592
|
is_leverage: int | None = None,
|
|
593
593
|
market_unit: str | None = None,
|
|
594
594
|
slippage_tolerance_type: str | None = None,
|
|
595
595
|
slippage_tolerance: str | None = None,
|
|
596
|
-
price:
|
|
596
|
+
price: str | None = None,
|
|
597
597
|
trigger_direction: int | None = None,
|
|
598
598
|
order_filter: str | None = None,
|
|
599
|
-
trigger_price:
|
|
599
|
+
trigger_price: str | None = None,
|
|
600
600
|
trigger_by: str | None = None,
|
|
601
601
|
order_iv: str | None = None,
|
|
602
602
|
time_in_force: str | None = None,
|
|
603
603
|
position_idx: int | None = None,
|
|
604
604
|
order_link_id: str | None = None,
|
|
605
|
-
take_profit:
|
|
606
|
-
stop_loss:
|
|
605
|
+
take_profit: str | None = None,
|
|
606
|
+
stop_loss: str | None = None,
|
|
607
607
|
tp_trigger_by: str | None = None,
|
|
608
608
|
sl_trigger_by: str | None = None,
|
|
609
609
|
reduce_only: bool | None = None,
|
|
610
610
|
close_on_trigger: bool | None = None,
|
|
611
611
|
smp_type: str | None = None,
|
|
612
612
|
mmp: bool | None = None,
|
|
613
|
-
tpsl_mode:
|
|
614
|
-
tp_limit_price:
|
|
615
|
-
sl_limit_price:
|
|
613
|
+
tpsl_mode: Literal["Full", "Partial"] | None = None,
|
|
614
|
+
tp_limit_price: str | None = None,
|
|
615
|
+
sl_limit_price: str | None = None,
|
|
616
616
|
tp_order_type: str | None = None,
|
|
617
617
|
sl_order_type: str | None = None,
|
|
618
618
|
) -> dict:
|
|
@@ -663,17 +663,17 @@ class Client(BaseClient):
|
|
|
663
663
|
order_id: str | None = None,
|
|
664
664
|
order_link_id: str | None = None,
|
|
665
665
|
order_iv: str | None = None,
|
|
666
|
-
trigger_price:
|
|
667
|
-
qty:
|
|
668
|
-
price:
|
|
669
|
-
tpsl_mode:
|
|
670
|
-
take_profit:
|
|
671
|
-
stop_loss:
|
|
666
|
+
trigger_price: str | None = None,
|
|
667
|
+
qty: str | None = None,
|
|
668
|
+
price: str | None = None,
|
|
669
|
+
tpsl_mode: Literal["Full", "Partial"] | None = None,
|
|
670
|
+
take_profit: str | None = None,
|
|
671
|
+
stop_loss: str | None = None,
|
|
672
672
|
tp_trigger_by: str | None = None,
|
|
673
673
|
sl_trigger_by: str | None = None,
|
|
674
674
|
trigger_by: str | None = None,
|
|
675
|
-
tp_limit_price:
|
|
676
|
-
sl_limit_price:
|
|
675
|
+
tp_limit_price: str | None = None,
|
|
676
|
+
sl_limit_price: str | None = None,
|
|
677
677
|
) -> dict:
|
|
678
678
|
"""Изменение параметров ордера.
|
|
679
679
|
|
|
@@ -942,26 +942,26 @@ class Client(BaseClient):
|
|
|
942
942
|
symbol: str,
|
|
943
943
|
side: str,
|
|
944
944
|
order_type: str,
|
|
945
|
-
qty:
|
|
946
|
-
price:
|
|
945
|
+
qty: str,
|
|
946
|
+
price: str | None = None,
|
|
947
947
|
trigger_direction: int | None = None,
|
|
948
|
-
trigger_price:
|
|
948
|
+
trigger_price: str | None = None,
|
|
949
949
|
trigger_by: str | None = None,
|
|
950
950
|
order_iv: str | None = None,
|
|
951
951
|
time_in_force: str | None = None,
|
|
952
952
|
position_idx: int | None = None,
|
|
953
953
|
order_link_id: str | None = None,
|
|
954
|
-
take_profit:
|
|
955
|
-
stop_loss:
|
|
954
|
+
take_profit: str | None = None,
|
|
955
|
+
stop_loss: str | None = None,
|
|
956
956
|
tp_trigger_by: str | None = None,
|
|
957
957
|
sl_trigger_by: str | None = None,
|
|
958
958
|
reduce_only: bool | None = None,
|
|
959
959
|
close_on_trigger: bool | None = None,
|
|
960
960
|
smp_type: str | None = None,
|
|
961
961
|
mmp: bool | None = None,
|
|
962
|
-
tpsl_mode:
|
|
963
|
-
tp_limit_price:
|
|
964
|
-
sl_limit_price:
|
|
962
|
+
tpsl_mode: Literal["Full", "Partial"] | None = None,
|
|
963
|
+
tp_limit_price: str | None = None,
|
|
964
|
+
sl_limit_price: str | None = None,
|
|
965
965
|
tp_order_type: str | None = None,
|
|
966
966
|
sl_order_type: str | None = None,
|
|
967
967
|
) -> dict:
|
|
@@ -1098,18 +1098,18 @@ class Client(BaseClient):
|
|
|
1098
1098
|
self,
|
|
1099
1099
|
category: Literal["linear", "inverse"],
|
|
1100
1100
|
symbol: str,
|
|
1101
|
-
tpsl_mode:
|
|
1101
|
+
tpsl_mode: Literal["Full", "Partial"],
|
|
1102
1102
|
position_idx: int,
|
|
1103
|
-
take_profit:
|
|
1104
|
-
stop_loss:
|
|
1103
|
+
take_profit: str | None = None,
|
|
1104
|
+
stop_loss: str | None = None,
|
|
1105
1105
|
trailing_stop: str | None = None,
|
|
1106
1106
|
tp_trigger_by: str | None = None,
|
|
1107
1107
|
sl_trigger_by: str | None = None,
|
|
1108
|
-
active_price:
|
|
1109
|
-
tp_size:
|
|
1110
|
-
sl_size:
|
|
1111
|
-
tp_limit_price:
|
|
1112
|
-
sl_limit_price:
|
|
1108
|
+
active_price: str | None = None,
|
|
1109
|
+
tp_size: str | None = None,
|
|
1110
|
+
sl_size: str | None = None,
|
|
1111
|
+
tp_limit_price: str | None = None,
|
|
1112
|
+
sl_limit_price: str | None = None,
|
|
1113
1113
|
tp_order_type: str | None = None,
|
|
1114
1114
|
sl_order_type: str | None = None,
|
|
1115
1115
|
) -> dict:
|
|
@@ -30,7 +30,7 @@ unicex/bitget/user_websocket.py,sha256=tlkv7Rmsw_FSfCJnEMOK_9jRsXRk2Ah_slqG8C-uh
|
|
|
30
30
|
unicex/bitget/websocket_manager.py,sha256=2OhH2gKy2gN03oYeCFvf3_l6RA29dDOvpajGhbXI9Zw,9886
|
|
31
31
|
unicex/bybit/__init__.py,sha256=SrMBh6K5zUt4JheWUpNUYNb1NCDr2ujTFv4IDguaGZI,926
|
|
32
32
|
unicex/bybit/adapter.py,sha256=U6QP2eGefZqfXq7H4P1G9M23HieAjmylb5FnrHISn5s,8147
|
|
33
|
-
unicex/bybit/client.py,sha256=
|
|
33
|
+
unicex/bybit/client.py,sha256=TB69fwMgvmKmkTFcO9Wf8S_Fe4JJGOM_208AlL4Dh8A,61673
|
|
34
34
|
unicex/bybit/exchange_info.py,sha256=S5IrN5c-jW0QbuO4LGH5rluO6qo7ib-wL-8LJWNOZgI,2422
|
|
35
35
|
unicex/bybit/uni_client.py,sha256=0wmIRRgofuJXWvZMB1gHwuIEfoWuPhLJXthmK1f9w40,8382
|
|
36
36
|
unicex/bybit/uni_websocket_manager.py,sha256=HhgFcGo2yQLT5knU3cFaKN85jJP0Z9EIwZ-zFlMQhDo,10621
|
|
@@ -94,8 +94,8 @@ unicex/okx/uni_client.py,sha256=E_Wod0JSGt1K6k1mAIWnOv350pELbv-nic7g1KgOuos,8694
|
|
|
94
94
|
unicex/okx/uni_websocket_manager.py,sha256=CR877hj4pKwJbYlmKJvETl1Zlezpd81ZdzHkAMCYIwA,9571
|
|
95
95
|
unicex/okx/user_websocket.py,sha256=8c9kpm-xVa729pW93OKUGLHaE9MY0uzEpjIgNIFRF80,126
|
|
96
96
|
unicex/okx/websocket_manager.py,sha256=wROXTUDqKzOE-wDnCtXso_MC4SzfPuPols5aPg_Z3y4,26027
|
|
97
|
-
unicex-0.14.
|
|
98
|
-
unicex-0.14.
|
|
99
|
-
unicex-0.14.
|
|
100
|
-
unicex-0.14.
|
|
101
|
-
unicex-0.14.
|
|
97
|
+
unicex-0.14.9.dist-info/licenses/LICENSE,sha256=lNNK4Vqak9cXm6qVJLhbqS7iR_BMj6k7fd7XQ6l1k54,1507
|
|
98
|
+
unicex-0.14.9.dist-info/METADATA,sha256=Wqf247BCSlw5Gd61MECuCR3xDi160VTfc32pMSK9tmk,11858
|
|
99
|
+
unicex-0.14.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
100
|
+
unicex-0.14.9.dist-info/top_level.txt,sha256=_7rar-0OENIg4KRy6cgjWiebFYAJhjKEcMggAocGWG4,7
|
|
101
|
+
unicex-0.14.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|