Esempio n. 1
0
 def entry(self, id, long, qty, limit=0, stop=0, when=True):
     """
     注文をする。pineの関数と同等の機能。
     https://jp.tradingview.com/study-script-reference/#fun_strategy{dot}entry
     :param id: 注文の番号
     :param long: ロング or ショート
     :param qty: 注文量
     :param limit: 指値
     :param stop: ストップ指値
     :param when: 注文するか
     :return:
     """
     BitMexStub.entry(self, id, long, qty, limit, stop, when)
Esempio n. 2
0
 def entry(self, id, long, qty, limit=0, stop=0, post_only=False, when=True):
     """
     places an entry order, works equivalent to tradingview pine script implementation
     https://jp.tradingview.com/study-script-reference/#fun_strategy{dot}entry
     :param id: Order id
     :param long: Long or Short
     :param qty: Quantity
     :param limit: Limit price
     :param stop: Stop limit
     :param post_only: Post only        
     :param when: Do you want to execute the order or not - True for live trading
     :return:
     """
     BitMexStub.entry(self, id, long, qty, limit, stop, post_only, when)