I have a response from some Rest API that just returns some array of arrays like the following:
[
[123,"0.01","0.02","0.03","0.04","12345.00000",123456789,"300.000",4000,"123.000","456.000","0"],
[456,"0.04","0.03","0.02","0.01","54321.00000",987654321,"500.000",4000,"123.000","456.000","1"],
[789,"0.05","0.06","0.07","0.08","12345.00000",123456789,"700.000",8000,"456.000","123.000","0"]
]
In this example, the amount of datasets is 3, but the amount is always different and could be 100+ also.
I want to have this read out into a class object, which has 12 arrays according to each type of value shown in the response:
public class foo
{
...
public int[] firstParam;
public string[] secondParam;
public string[] thirdParam;
...
}
For example, firstParam
should contain then {123,456,789}
; secondParam
should contain {"0.01","0.04","0.05"}
and so on.
The schema for the columns is known and documented in Public Rest API for Binance: Kline/Candlestick data.. An example would be some query like https://api.binance.com/api/v1/klines?symbol=XVGBTC&interval=1h