How to get historic prices?
#3
Thanks for your help. I'm aware that there is a way to import all historic data. That's not what I'm after. My question is about the API specifically.

Let me explain a bit further. Suppose you have a long history of trades in different currencies A and B and you wish to calculate the PnL of these trades in another currency P.  For example  you've traded  ETH vs BTC and you'd want to calculate the PnL result between (any) two of these trades in USD. From the trades themselves you can read of what the ETHBTC price was.  To get a result in USD, you'd also need to know the BTCUSD price at the moment of the first trade and of the second trade.  (The ETHUSD price can then be implied from  ETHUSD = ETHBTC * BTCUSD)

Instead of downloading the entire price history, I'd like to make a simple request to the API to just get one price for one pair at one moment in the past.

Do you know how to do this for Kraken or any other website / exchange / other API? That would be really helpful.
  Reply


Messages In This Thread
How to get historic prices? - by Hilko - 05-21-2018, 10:45 PM
RE: How to get historic prices? - by xFFFFF - 05-24-2018, 04:41 PM
RE: How to get historic prices? - by Hilko - 05-24-2018, 08:40 PM

Forum Jump:


Users browsing this thread: