Beispiel #1
0
def getTradeHistoryKraken(key, secret, start, end):
    # pass None as database for now. Can cause errors. Will be catched in getApiHistory
    api = kraken.Kraken(api_key=key,
                        secret=secret.encode(),
                        database=None,
                        msg_aggregator=user_messages.MessagesAggregator())
    return getTradesFromApi(api, start, end)
Beispiel #2
0
def getTradeHistoryCoinbasepro(key, secret, start, end):
    # pass None as database for now. Can cause errors. Will be catched in getApiHistory
    api = coinbasepro.Coinbasepro(api_key=key, secret=secret.encode(),
                                  database=None, msg_aggregator=user_messages.MessagesAggregator(),
                                  passphrase='rotki')
    return getTradesFromApi(api, start, end)