Skip to content
/ CoinAge Public

A real-time webapp providing stock data and exchange rates, including cryptocurrencies.

License

Notifications You must be signed in to change notification settings

Sacusa/CoinAge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoinAge

TODO: Describe the application.

Contents

TODO: Add contents after the document is ready.

1. Data Producer

The data producer fetches real-time data using Alpha Vantage API. The data is then pushed onto Apache Kafka.

The information about an indivdual stock at a particular time instance is stored in a class Stock, described as follows:

class Stock {
    private final String symbol;
    private final String dateTime;
    private final Map<String, Double> values;

    public Stock (String symbol, String dateTime, Double openValue, Double highValue, Double lowValue, Double closeValue, double volume);
    public Map<String, Double> getValues ();
    public String getSymbol ();
    public String getDateTime ()
}

All the functionality is encapsulated in a class called Producer, described as follows:

class Producer {
    private List<String> symbols;
    private Map<String, List<Stock>> stockValues;
    private final String apiKey;

    public Producer (List<String> symbols, String apiKey);
    public void update ();
    public List<Stock> getStockValues (String stockSymbol);
}

About

A real-time webapp providing stock data and exchange rates, including cryptocurrencies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published