Skip to content

Instantly share code, notes, and snippets.

@lazear
Created June 29, 2017 00:36
Show Gist options
  • Save lazear/192c9dbc47a49ee42347a78a12c5dfa6 to your computer and use it in GitHub Desktop.
Save lazear/192c9dbc47a49ee42347a78a12c5dfa6 to your computer and use it in GitHub Desktop.
(define (make-order symbol side price amount)
(cons 'pending (list symbol side price amount)))
(define new-conditional-order (lambda (func order)
(if func
`(placed ,order))))
(define get-price 2700)
(define get-balances
'(
(btc 1 0.9884)
(usd 10 10)
(eth 12 12)))
(define (place-above-price x)
(> get-price x))
(define (place-below-price x)
(< get-price x))
get-balances
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment