Skip to content

Commit 681bcee

Browse files
committed
Support trading on margin
1 parent ee6bdb3 commit 681bcee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

shipane_sdk/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,14 @@ def sell(self, client=None, timeout=None, **kwargs):
119119
kwargs['action'] = 'SELL'
120120
return self.__execute(client, timeout, **kwargs)
121121

122+
def buy_on_margin(self, client=None, timeout=None, **kwargs):
123+
kwargs['action'] = 'BUY_ON_MARGIN'
124+
return self.__execute(client, timeout, **kwargs)
125+
126+
def sell_then_repay(self, client=None, timeout=None, **kwargs):
127+
kwargs['action'] = 'SELL_THEN_REPAY'
128+
return self.__execute(client, timeout, **kwargs)
129+
122130
def ipo(self, client=None, timeout=None, **kwargs):
123131
kwargs['action'] = 'IPO'
124132
return self.__execute(client, timeout, **kwargs)

0 commit comments

Comments
 (0)