Created
June 19, 2013 18:45
-
-
Save jordanbaucke/5816817 to your computer and use it in GitHub Desktop.
bfx-python-example-run
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
from bitfinex import Bitfinex | |
import os | |
with open(os.path.expanduser('~/.bfx_test_account_key.txt'), 'r') as f: | |
KEY, SECRET = f.read().strip().splitlines() | |
print (KEY, SECRET) | |
bfx = Bitfinex() | |
bfx.key = KEY | |
bfx.secret = SECRET | |
print '\n-- TICKER' | |
print bfx.ticker() | |
#print '\n-- TODAY' | |
#print bfx.today() | |
print '\n-- SYMBOLS' | |
print bfx.symbols() | |
print '\n-- BOOK' | |
print bfx.book({}) | |
print '\n-- TRADES' | |
print bfx.trades({}) | |
#print '\n-- ORDER NEW' | |
#print bfx.order_new({ }) | |
#print '\n-- ORDER CANCEL' | |
#print bfx.order_cancel({ }) | |
#print '\n-- ORDER STATUS' | |
#print bfx.order_status({ }) | |
print '\n-- ORDERS' | |
print bfx.orders() | |
print '\n-- BALANCES' | |
print bfx.balances() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment