Historical Quotes via JSON - KuCoin API

I’m trying to include some of my crypto holdings, which are supported Kucoin but not by the software’s two built-in exchanges (Bitfinex & Kraken). I figured I could do this by using PP’s JSON provider option, with Kucoin’s API (https://docs.kucoin.com/#get-24hr-stats). As an example URL:

https://api.kucoin.com/api/v1/market/stats?symbol=OCEAN-ETH

There are two problems here that I’m not sure how to solve:

  1. Some of KuCoin’s currencies don’t have a pairing with USD - i.e. OCEAN only pairs ETH, so then this needs to be in turn translated by ETH-USD for the sake of showing my holdings as their USD equivalents in my portfolio. Not sure how to handle that.
  2. Even for currencies that KuCoin’s API does provide a direct pairing with USD (for instance https://api.kucoin.com/api/v1/market/stats?symbol=BTC-USDT), Portfolio Performance seems to require a „date“ (per https://translate.google.de/translate?hl=&sl=de&tl=en&u=https%3A%2F%2Fhelp.portfolio-performance.info%2Fkursdaten_laden%2F%23json ). From the API’s link, you can see that it provides a unix epoch timestamp. I haven’t been able to figure out anything in „path to date“ & „path to close“ that makes this work.

Is what I’m trying to do impossible - the JSON options just aren’t flexible enough?

Thanks in advance for any thoughts :slight_smile:

1 Like