A simple candle average price calculator in common lisp
Common Lisp
Latest commit 20799a8 Apr 30, 2014 @jmunnings jmunnings Updated endpoints
Failed to load latest commit information.
LICENSE Update LICENSE Jun 13, 2013
README.md Updated client to use granularity instead of gran Nov 28, 2012
avgcalc.lisp Updated endpoints Apr 30, 2014



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.


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


  • 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)


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