Created
June 29, 2017 00:36
-
-
Save lazear/192c9dbc47a49ee42347a78a12c5dfa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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