def __init__(self, symbol: str, amount: float, price_distance: float): api = OrderApi(symbol, amount, price=price_distance) api.side = OS.SELL api.type = OT.EXCHANGE_TRAILING_STOP Order.__init__(self, api)
def __init__(self, symbol: str, amount: float, limit: float): api = OrderApi(symbol, amount, price=limit) api.side = OS.SELL api.type = OT.EXCHANGE_LIMIT Order.__init__(self, api)
def __init__(self, symbol: str, amount: float, stop_price: float): api = OrderApi(symbol, amount, price=stop_price) api.side = OS.SELL api.type = OT.EXCHANGE_STOP Order.__init__(self, api)
def __init__(self, symbol: str, amount: float): api = OrderApi(symbol, amount) api.price = 1.00 api.side = OS.SELL api.type = OT.EXCHANGE_MARKET Order.__init__(self, api)