Kraken Bitcoin exchange platform
Questions tagged [kraken.com]
63 questions
12
votes
2 answers
Kraken-API OHLC request doesn't honor the 'since' parameter
I'm trying to retrieve 3 months history of 30-minute candles from Kraken using the REST API:
https://www.kraken.com/help/api
Following the documentation, I made this POST request to URL:
https://api.kraken.com/0/public/OHLC
passing the following…

xsilmarx
- 729
- 5
- 22
4
votes
0 answers
Slow queries with sqlite database generated by EF Core. Indices are present
The schema
The sqlite database described below is currently 52 GB. It was generated as part of an Entity Framework Core 6.0 project.
The Trades table
CREATE TABLE IF NOT EXISTS "Trades" (
"Id" INTEGER NOT NULL CONSTRAINT "PK_Trades"…

dharmatech
- 8,979
- 8
- 42
- 88
3
votes
2 answers
BTC Price Across Different Crypto Exchanges
I am trying to use CCXT to get the BTC bid and ask price across different exchanges, but running the code sequencially cannot get the price of a given moment correctly. Is there any way to execute them at the same time and return the correct…

Will-NotGiveUp
- 96
- 6
3
votes
1 answer
Kraken API error "EFunding:Unknown withdraw key"
I'm currently using the Kraken API to make orders and withdraw currency.
The problem is when I want to withdraw EUR thanks to the Kraken API, they ask me to put my ithdrawal key name. I thought it was my API key or my key description, but none of…

Heru Abollo
- 31
- 3
3
votes
4 answers
Calculate RSI based on Kraken OHLC
I want to exactly mirror the RSI values on cryptowatch.de (In my case LTC-EUR), I used the site stockcharts.com, which explains how to calculate the RSI, to write the calculator in Javascript (node).
My code so far:
// data is an array of…

Simon
- 2,686
- 2
- 31
- 43
2
votes
1 answer
API secret generation in rails
I've been trying to generate secret key via rials but for some reasons stuff differs from what I see in python.
Python code:
# Import required Python libraries
import time
import base64
import hashlib
import hmac
# Decode API private key from…

Justas
- 163
- 1
- 7
2
votes
1 answer
Kraken API 'EAPI:Invalid key' with Python3
I tried making a simple function which makes a HTTP request to Kraken exchange API. The method is private, I am trying to fetch my account balance.
According to Kraken documentation (https://www.kraken.com/features/api#general-usage):
HTTP…

Corkscrew
- 91
- 3
- 8
2
votes
2 answers
Using Google Sheets script editor to access the Kraken API
I can't figure out where the Kraken API inputs go. I am using https://api.kraken.com/0/private/AddOrder as a starting point. The inputs include things like: pair = XBTUSD, type = buy, ordertype = limit etc. I'm an API noob and I realise this isn't…

Rob Cranton
- 21
- 1
1
vote
0 answers
Kraken Futures API. Get Orders history
I need to load all the orders I had by API. Currently I found only one way to get Fills snapshot by websockets but there is not enough info about orders. I see order ID there, but can't find endpoint to get details of Order by ID. Also I found…

Artem
- 364
- 2
- 18
1
vote
0 answers
Kraken API. Get Closed Orders count is not correct
I'm trying to get all closed orders for my account. So I use /0/private/ClosedOrders endpoint. In the answer I have count = 188, but if I set offset to 150 for the same request I have more 50 orders in response, and then I set offset 200 and have 5…

Artem
- 364
- 2
- 18
1
vote
0 answers
Why is Kraken API throwing me EAPI: Invalid Key / Signature
I am trying to connect to Krakens api, i am successful in connecting to the api but i get an error: "EAPI: Invalid Key" and "EAPI: Invalid Signature". when i get which error depends on how i edit the raw request, specifically the request headers.…

John Doe
- 47
- 6
1
vote
1 answer
Python - Extract/access information from json via Kraken API
I'm trying to understand how to work with the json returns I am getting from de Kraken API.
This is my code:
resp = kraken_request("/0/private/TradeBalance", {
"nonce": str(int(10000*time.time())),
"asset": "USD"
}, api_key,…

user9467387
- 43
- 1
- 5
1
vote
1 answer
Generate signed message in Kraken Rest api
I am sending requests to Kraken api using a private key. The problem is, generated signature is not as expected.
Please note that the key you can see below it's just a sample. But it should generate the expected output. If so, that means the code is…

derloopkat
- 6,232
- 16
- 38
- 45
1
vote
1 answer
How to solve "'int' object is not subscriptable" in Django from a Kraken API
I was wondering what the correct way is to save a number in Django SQLite coming from a Kraken API, when there is an Array of Array of strings or integers (https://docs.kraken.com/rest/#operation/getOHLCData).
my views.py
from rest_framework import…

David
- 97
- 7
1
vote
1 answer
Kraken API - Account balances request returning Invalid Nonce
so I am using the kraken api docs and I am trying to return my account balances but when running my python file I am getting {'error': ['EAPI:Invalid nonce']} returned. For my nonce in both signature & request I am using…

Jack_T
- 125
- 7