converting data from Kraken exchange #1077
PythonNewby
started this conversation in
Help and support
Replies: 1 comment
-
I can help you regarding C#. var quotes = yourData
.Select(q=> new Quote {
Open = q.OpenPrice,
High = q.HighPrice,
Low = q.LowPrice,
Close = q.ClosePrice,
Date = q.CloseDate
})
.OrderBy(q => q.Date)
.ToList(); Later you can for example loop like: and indicatorResult will contain all the output data. I am not author or contributor, I have just implement the current library for my own (personal - non commercial) project. Feel free to take a look: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Could someone help with converting Kraken-Data into the standard OHLCV Iterable[Quote]format?
This is what I use to have my data from the Kraken exchange:
resp = requests.get('https://api.kraken.com/0/public/OHLC?pair=SOLUSD&since=1647625329&interval=60')
Could someone suggest how to transform the data I get with this method into the Quote format which then can be used with the tools on this site?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions