Skip to content

mahendra-s/play-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-spark

Run Bitcoin data application

git clone git@github.com:mahendra-s/play-spark.git
cd play-spark
sbt clean run 

Home page

Home Page

get to get bitcoin price history for last week

/v1/pricehistory?period=week

e.g http://localhost:9000/v1/pricehistory?period=week

get to get bitcoin price history for last week with moving average 2 days

/v1/pricehistory?period=week&rollingavg=2

e.g http://localhost:9000/v1/pricehistory?period=week&rollingavg=2

get to get bitcoin price history for last month

/v1/pricehistory?period=month

e.g http://localhost:9000/v1/pricehistory?period=month

get to get bitcoin price history for last month with moving average 2 days

/v1/pricehistory?period=month&rollingavg=2

e.g http://localhost:9000/v1/pricehistory?period=month&rollingavg=2

get to get bitcoin price history for specific period

/v1/pricehistoryperiod?start=2018-06-01&end=2018-06-06

e.g http://localhost:9000/v1/pricehistoryperiod?start=2018-06-01&end=2018-06-06

get to get bitcoin price history for specific period with moving average 2 days

/v1/pricehistoryperiod?start=2018-06-01&end=2018-06-06&rollingavg=2

e.g http://localhost:9000/v1/pricehistoryperiod?start=2018-06-01&end=2018-06-06&rollingavg=2

get pedected price for x days

/v1/priceforecast?days=15

e.g http://localhost:9000/v1/priceforecast?days=15

get pedected price for x days with moving average

/v1/priceforecast?days=15&rollingavg=3

e.g http://localhost:9000/v1/priceforecast?days=15&rollingavg=3

Graphical Reports

Price History Display

To see data trend with graphical report

/display/pricehistory?period=week&rollingavg=2

e.g http://localhost:9000/display/pricehistory?period=week&rollingavg=2

To see data trend with graphical report

/display/pricehistory?period=month&rollingavg=2

e.g http://localhost:9000/display/pricehistory?period=month&rollingavg=2

About

using spark within play is not recommended

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages