A simple candle average price calculator in common lisp
Common Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
avgcalc.lisp

README.md

cl-restapi-demo

This is a common lisp implementation of average price calculator for the past X days. The average being used is the average of high mid and low mid. The implementation relies on OANDA API for rates.

Dependency

  • Compiler used is SBCL.
  • JSON parsing is done in cl-json.
  • HTTP requests are made with drakma.

Setup

  • The implementation was done on SBCL, its home page has information on how to install.
  • You can get quicklisp to manage the dependencies for you. The two packages you need are "cl-json" and "drakma".
  * (quicklisp-quickstart:install)
  * (ql:quickload "cl-json")
  * (ql:quickload "drakma")
  * (ql:add-to-init-file)

Run

$ sbcl --load avgcalc.lisp
* (get-average-price :pair "EUR_USD" :days 10)

1.2890904