Skip to content

baranozoglu/ApxParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APX market data parser


Example of JSON data that we need to parse is available at src/test/resources/net/sympower/cityzen/apx/apx-data.json

We need the following data for each hour of the day:

  • date ("date_applied" in JSON) - Date as milliseconds since start of epoch (start of day). Timezone is Netherlands.
  • hour - based on either "Order" or "Hour" field, we need to figure out the hour-of-day for which particular data row is applicable for.
  • net volume - use the value from "Net Volume" field
  • price - use the value from "Price" field

For JSON parsing, we use Jackson.

Basic steps

  • Define object model in Java.
  • Implement code to parse JSON into the object model.
  • Implement tests for the code (e.g. load sample from class path, verify it was parsed correctly).

Building

You can use either Gradle, Gradle wrapper or Maven (we use Gradle 3.1+).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages