After wasting a lot of time changing the example in the readme and changing the Kotlin in order to get this working from Java/Maven, I got the exception below.
I'm going to stop wasting my time: I just want historical data and it looks like I can get it in CSV form from DataBento for a lot less than the time it'd take me to get this working.
com.squareup.moshi.JsonDataException: Expected an int but was 1749456000000 at path $.results[0].t
at com.squareup.moshi.JsonUtf8Reader.nextInt (JsonUtf8Reader.java:928)
at com.squareup.moshi.StandardJsonAdapters$7.fromJson (StandardJsonAdapters.java:196)
at com.squareup.moshi.StandardJsonAdapters$7.fromJson (StandardJsonAdapters.java:193)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson (KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.CollectionJsonAdapter.fromJson (CollectionJsonAdapter.java:81)
at com.squareup.moshi.CollectionJsonAdapter$2.fromJson (CollectionJsonAdapter.java:55)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson (KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.JsonAdapter.fromJson (JsonAdapter.java:70)
at com.massive.client.apis.DefaultApi.getStocksAggregatesWithHttpInfo (DefaultApi.kt:48614)
at com.massive.client.apis.DefaultApi.getStocksAggregates (DefaultApi.kt:11194)
After wasting a lot of time changing the example in the readme and changing the Kotlin in order to get this working from Java/Maven, I got the exception below.
I'm going to stop wasting my time: I just want historical data and it looks like I can get it in CSV form from DataBento for a lot less than the time it'd take me to get this working.
com.squareup.moshi.JsonDataException: Expected an int but was 1749456000000 at path $.results[0].t
at com.squareup.moshi.JsonUtf8Reader.nextInt (JsonUtf8Reader.java:928)
at com.squareup.moshi.StandardJsonAdapters$7.fromJson (StandardJsonAdapters.java:196)
at com.squareup.moshi.StandardJsonAdapters$7.fromJson (StandardJsonAdapters.java:193)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson (KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.CollectionJsonAdapter.fromJson (CollectionJsonAdapter.java:81)
at com.squareup.moshi.CollectionJsonAdapter$2.fromJson (CollectionJsonAdapter.java:55)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson (KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson (NullSafeJsonAdapter.java:41)
at com.squareup.moshi.JsonAdapter.fromJson (JsonAdapter.java:70)
at com.massive.client.apis.DefaultApi.getStocksAggregatesWithHttpInfo (DefaultApi.kt:48614)
at com.massive.client.apis.DefaultApi.getStocksAggregates (DefaultApi.kt:11194)