Skip to content

ostronom/scala-ecb-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala ECB currency exchange rates parser

This library allows you to retrieve ECB provided data for exchange rates of different currencies compared to Euro.

The API is very simple.

  • com.ostronom.ecb.Parser.loadLatest()(implicit client: HttpClient, ec: ExecutionContext): Future[Option[DayRates]]

returns latest exchange rates

  • com.ostronom.ecb.Parser.loadLast90Days()(implicit client: HttpClient, ec: ExecutionContext): Future[Seq[Option[DayRates]]]

returns exchange rates history for last 90 days.

You should provide implicit HttpClient which is a simple object with get(url: String): Future[String] method.

Usage examples could be found in tests.

That's it.

Dependency

<dependency>
  <groupId>com.ostronom</groupId>
  <artifactId>scala-ecb-parser_2.11</artifactId>
  <version>1.0</version>
  <type>pom</type>
</dependency>

License

WTFPL

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages