Ejemplo n.º 1
0
def create_order(bitflyer, side, amount, price):
    res = bitflyer.create_order(symbol = "FX_BTC_JPY", type = "limit", side = side, amount = amount, price = price)
    
    if res["id"] is None:
        raise Exception("Can not order")

    return res
Ejemplo n.º 2
0
def create_sell_order(bitflyer, amount):
    res = bitflyer.create_order(symbol="FX_BTC_JPY",
                                type="market",
                                side="sell",
                                amount=amount)

    if res["id"] is None:
        raise Exception("Can not order")

    return res