Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple candle average price calculator in common lisp
Common Lisp
branch: master
Failed to load latest commit information.
LICENSE Update LICENSE
README.md Updated client to use granularity instead of gran
avgcalc.lisp Updated endpoints

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
Something went wrong with that request. Please try again.