Skip to content

Commit a4ee876

Browse files
committed
add switch_position_mode
1 parent f23fe86 commit a4ee876

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/huobi/linear_swap/rest/order.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ def __init__(self, access_key: str, secret_key: str, host: str = HOST_FUTURES):
99
self.__secret_key = secret_key
1010
self.__host = host
1111

12+
def isolated_switch_position_mode(self, data: dict = None) -> json:
13+
path = "/linear-swap-api/v1/swap_switch_position_mode"
14+
return post(self.__host, path, self.__access_key, self.__secret_key, data)
15+
16+
def cross_switch_position_mode(self, data: dict = None) -> json:
17+
path = "/linear-swap-api/v1/swap_cross_switch_position_mode"
18+
return post(self.__host, path, self.__access_key, self.__secret_key, data)
19+
1220
def isolated_order(self, data: dict = None) -> json:
1321
path = "/linear-swap-api/v1/swap_order"
1422
return post(self.__host, path, self.__access_key, self.__secret_key, data)

0 commit comments

Comments
 (0)