seems like there´s no documentation for the "getPriceHistory()" response type.
You´ll get a two-dimensional number array (number[][]) for the candles but I could not find any reference to what the array values represent.
I checked your code and found the candle data is:
Index 0: timestamp
Index 1: open
Index 2: close
Index 3: low
Index 4: high
Index 5: volume
Maybe even returning an array of candle objects instead of the number array would be a great move.
Hey,
seems like there´s no documentation for the "getPriceHistory()" response type. You´ll get a two-dimensional number array (number[][]) for the candles but I could not find any reference to what the array values represent.
I checked your code and found the candle data is: Index 0: timestamp Index 1: open Index 2: close Index 3: low Index 4: high Index 5: volume
Maybe even returning an array of candle objects instead of the number array would be a great move.