Skip to content

yelinaung/banks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banks

Just scrap-and-show API for currency exchange rates of Banks in Myanmar.

Supported banks

How to run

You will need forego to run two processes. And also install rethinkdb for storing the json.

$ go get -u github.com/ddollar/forego
$ go get -u github.com/yelinaung/banks/...
$ cd $GOPATH/src/github.com/yelinaung/banks
$ go get ./...
$ rethinkdb
$ ./run # or ./run-prod if you want to run in production

Usage

Getting latest rates by bank

e.g put the bank name after the base url. For example,

GET 

/api/v1/b/[bank name]

Example available at : http://c.yelinaung.com/api/v1/b/kbz

Getting latest rates

During debug mode, scraper runs every 20 seconds and during prod mode, the scraper runs every 2 hours.

GET 

/api/v1/latest

Example available at : http://c.yelinaung.com/api/v1/latest

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)

License

MIT

About

Currency exchange rates of Banks in Myanmar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published