Author

Topic: Bitcoinica API Python Interface (Read 1752 times)

legendary
Activity: 1904
Merit: 1002
March 12, 2017, 04:24:29 PM
#7
So how has this been working for everyone?  Haven't gotten the code yet.  Learning python myself and its kind of fun. 

Bitcoinica went tits up years ago, so it probably didn't work out well at all.
hero member
Activity: 854
Merit: 500
Nope..
March 12, 2017, 02:54:57 PM
#6
So how has this been working for everyone?  Haven't gotten the code yet.  Learning python myself and its kind of fun. 
newbie
Activity: 41
Merit: 0
February 02, 2012, 10:08:16 PM
#5
Just what I was looking for! I've been learning python on and off for awhile, maybe this is what I needed to give me some motivation.  Grin Thanks for posting this!
hero member
Activity: 532
Merit: 500
January 25, 2012, 03:17:10 AM
#4
I have been playing around with this.  It works fine.  I have not found any bugs.

I wanted to know how would you extract the returned objects.  For example:

Code:
quotes = exchange.get_quotes
quotes
(200, {u'pair': u'BTCUSD', u'selling': 6.3806, u'buying': 6.25541})

I am am just learning python, so how would you extract the selling and buying prices?
"quotes" here is a tuple, which means it has numbered entries. for instance, quotes[0] is 200, and quotes[1] is {u'pair': u'BTCUSD', u'selling': 6.3806, u'buying': 6.25541}
the thing in braces is a dictionary, which means it has named entries. for instance, quotes[1]['selling'] will give you 6.3806, and quotes[1]['buying'] will give you 6.25541

Thanks Qoheleth!
legendary
Activity: 960
Merit: 1028
Spurn wild goose chases. Seek that which endures.
January 25, 2012, 03:12:45 AM
#3
I have been playing around with this.  It works fine.  I have not found any bugs.

I wanted to know how would you extract the returned objects.  For example:

Code:
quotes = exchange.get_quotes
quotes
(200, {u'pair': u'BTCUSD', u'selling': 6.3806, u'buying': 6.25541})

I am am just learning python, so how would you extract the selling and buying prices?
"quotes" here is a tuple, which means it has numbered entries. for instance, quotes[0] is 200, and quotes[1] is {u'pair': u'BTCUSD', u'selling': 6.3806, u'buying': 6.25541}
the thing in braces is a dictionary, which means it has named entries. for instance, quotes[1]['selling'] will give you 6.3806, and quotes[1]['buying'] will give you 6.25541
hero member
Activity: 532
Merit: 500
January 25, 2012, 02:57:17 AM
#2
I have been playing around with this.  It works fine.  I have not found any bugs.

I wanted to know how would you extract the returned objects.  For example:

Code:
quotes = exchange.get_quotes
quotes
(200, {u'pair': u'BTCUSD', u'selling': 6.3806, u'buying': 6.25541})

I am am just learning python, so how would you extract the selling and buying prices?
full member
Activity: 177
Merit: 100
January 22, 2012, 06:23:56 AM
#1
As I mentioned here, I've written an interface for the Bitcoinica API in Python, after not finding one out in the wild. I've now cleaned it up a little, and put it up on GitHub for all to use. It's fairly bare-bones, but hopefully some people here will find it useful. Any suggestions to improve it will be welcomed.
Jump to: