All
Filter by:
How do I deposit cash into my account?
I need help with account verification
Why can't I access my account?
Are there any crypto withdrawal fees?
I need help signing into my account
Required Legal Notice: Virtual currencies, real risks. The only guarantee in crypto is risk. Read more
Required Legal Notice: Virtual currencies, real risks. The only guarantee in crypto is risk. Read more
Required Legal Notice: Virtual currencies, real risks. The only guarantee in crypto is risk. Warning: The value of your virtual currencies can rise or fall sharply, and your initial investment may be lost completely; virtual currencies are not covered by the guarantee funds that cover bank deposits; there is no legal mechanism on the virtual currencies market to prevent market manipulation or insider dealing; virtual currencies depend entirely on a specific computer technology and infrastructure, which in certain cases may be very recent and not yet adequately tested; if one loses the identification code or password giving access to the virtual wallet in which the virtual currency is stored, the currency held therein will be irretrievably lost; virtual currencies are currently accepted as a means of payment to a limited extent, and in most countries there is no legal obligation to accept them; for more information about the risks associated with an investment in virtual currencies, we advise you to read the Wikifin page What is a cryptocurrency? | Wikifin.
Required Legal Notice: Virtual currencies, real risks. The only guarantee in crypto is risk. Warning: The value of your virtual currencies can rise or fall sharply, and your initial investment may be lost completely; virtual currencies are not covered by the guarantee funds that cover bank deposits; there is no legal mechanism on the virtual currencies market to prevent market manipulation or insider dealing; virtual currencies depend entirely on a specific computer technology and infrastructure, which in certain cases may be very recent and not yet adequately tested; if one loses the identification code or password giving access to the virtual wallet in which the virtual currency is stored, the currency held therein will be irretrievably lost; virtual currencies are currently accepted as a means of payment to a limited extent, and in most countries there is no legal obligation to accept them; for more information about the risks associated with an investment in virtual currencies, we advise you to read the Wikifin page What is a cryptocurrency? | Wikifin.
The REST API TradesHistory endpoint can be used to retrieve the entire trading history for your account.
The TradesHistory endpoint will return up to 50 trades per request in reverse chronological order (the most recent trades first), and provides a pagination offset parameter (ofs) to retrieve subsequent groups (pages) of up to 50 trades each.
For example, calling the TradesHistory endpoint without an offset parameter or with an offset of zero (ofs=0) would return the most recent 50 trades for your account, while calling TradesHistory with an offset of 50 (ofs=50) would return the next group of 50 trades (the 51st to 100th trades).
#!/usr/bin/env python3
# pretty-print the TradesHistory using offset parameter for more than 50 records
import sys
import pprint
import krakenex
import time
k = krakenex.API()
k.load_key('kraken.key')
iterations = 0
offSet = 0
while True:
iterations +=1
try:
response = k.query_private('TradesHistory', {'ofs': offSet})
pprint.pprint(response)
count = response['result']['count']
print(count)
offSet += 50
time.sleep(2)
print(offSet)
if (offSet >= 400):
print("API offset count is 400 or more")
print("We made {0} Calls to the API".format(iterations))
raise SystemExit
except:
raise SystemExit