Esempio n. 1
0
def main():
    gem = Geminipy(api_key="72x9myrMio2LKMuyWxVR",
                   secret_key="Ywujy3nNLBncuvWxfj9bryNSZpM")
    a = gem.symbols()
    c = gem.price(symbol='btcusd')
    d = gem.new_order(amount="5",
                      price="3528.85",
                      side="buy",
                      client_order_id="3424",
                      symbol='btcusd',
                      type='exchange limit',
                      options=["maker-or-cancel"])
    e = gem.book(symbol='btcusd', limit_asks=0, limit_bids=0)

    anum = int(input("Please enter a number"))
from geminipy import Geminipy

con = Geminipy(api_key='xxx', secret_key='xxx', live=True)
symbols = con.symbols()
book = con.book()

x = 0.079


def gem_buy_order():
    order = con.new_order(amount=0.01, price=x, side='buy')


gem_buy_order()