Skip to content

Instantly share code, notes, and snippets.

View jordanbaucke's full-sized avatar

Jordan Baucke jordanbaucke

View GitHub Profile
@jordanbaucke
jordanbaucke / testbfx.py
Created June 19, 2013 18:45
bfx-python-example-run
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
@jordanbaucke
jordanbaucke / bitfinex-python.py
Created June 19, 2013 06:16
Python example code for an authenticated call to Bitfinex API v1
import requests # pip install requests
import json
import base64
import hashlib
import time #for nonce
api_key = ''
api_secret = ''
#url = 'https://bitfinex.com/api/v1/order/new'
@jordanbaucke
jordanbaucke / bitfinex-node.js
Created June 19, 2013 06:15
NodeJs example code for Bitfinex API v1 Authenticated call
var https = require('https');
var crypto = require('crypto');
var url = 'https://bitfinex.com/api/v1/balances';
var subPath = '/balances';
var api_key = '';
var api_secret = '';
var path = '/api/v1' + subPath;