Skip to content

Instantly share code, notes, and snippets.

@carboleum
Last active January 6, 2021 19:30
Show Gist options
  • Save carboleum/5040c9af10645adf02c4b822dc8824ef to your computer and use it in GitHub Desktop.
Save carboleum/5040c9af10645adf02c4b822dc8824ef to your computer and use it in GitHub Desktop.
Access Kraken API with Common Lisp
(ql:quickload :cl-kraken)
(setq cl-kraken/src/globals::*api-key* "my api key")
(setq cl-kraken/src/globals::*api-secret* "my api secret")
; public market data
(cl-kraken::request "Time")
(cl-kraken::request "Ticker" :params '(("pair" . "XXBTZEUR")))
; private user data
(cl-kraken::request "Balance" :post t)
(cl-kraken::request "TradeBalance" :params '(("asset" . "ZEUR")) :post t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment