Bitcoin Forum
May 21, 2019, 10:05:55 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python bindings for the Mt. Gox trading API (v0.01)  (Read 2017 times)
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
April 19, 2011, 09:41:22 PM
Last edit: April 19, 2011, 11:11:39 PM by kokjo
 #1

hi!

I have made a api for trading at Mt. Gox. git repo: https://github.com/kokjo/MtGoxAPI

depenciies: pycurl
how to use:
Code:
>>> import MtGoxAPI
>>> client = MtGoxAPI.Client("your_username", "your_password")
>>> client.get_ticker()
{u'ticker': {u'sell': 1.1950000000000001, u'buy': 1.1830000000000001, u'last': 1.1950000000000001, u'vol': 14176, u'high': 1.1950000000000001, u'low': 1.1218999999999999}}
>>>

the public(data) api:
Code:
get_ticker()
get_depth()
get_trades()

the private(trading) api:
Code:
get_balance()
get_orders()
sell_btc(amount, price)
buy_btc(amount, price)

if you like it or use it please feel free to donate to 1EJXbMi5CjHeNmUQNpZgg72HWzEMX8tVja

happy hackin' Cheesy

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
1558476355
Hero Member
*
Offline Offline

Posts: 1558476355

View Profile Personal Message (Offline)

Ignore
1558476355
Reply with quote  #2

1558476355
Report to moderator
1558476355
Hero Member
*
Offline Offline

Posts: 1558476355

View Profile Personal Message (Offline)

Ignore
1558476355
Reply with quote  #2

1558476355
Report to moderator
Get alert of price pumps/dumps beforehand 74% average Win Rate
reported by our users
TRY NOW!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
sortedmush
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
April 24, 2011, 12:43:01 PM
 #2

This is great. Thanks. 1btc sent.
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
April 24, 2011, 12:58:04 PM
 #3

This is great. Thanks. 1btc sent.
thanks Cheesy

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
hozer
Sr. Member
****
Offline Offline

Activity: 271
Merit: 250


View Profile WWW
April 24, 2011, 02:57:48 PM
 #4

Wonderful..

Now how much would you charge, and how long would it take you to get a single object-oriented python library for MtGox, BtcEx, and Britcoin API's?  .. Please release/license as open-source Wink
BioMike
Legendary
*
Offline Offline

Activity: 1659
Merit: 1001


View Profile
April 24, 2011, 04:41:08 PM
 #5

So, kokjo beat me in releasing a MtGox Python api (working on a MyBitcoin python library atm).
FooDSt4mP
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
April 25, 2011, 08:29:44 AM
 #6

Thanks! Now I have a 13 line bot that watches the ask price and sells slightly lower than the best bid price if the ask drops below a certain price, and puts a bid in to rebuy a bit lower Smiley.

As we slide down the banister of life, this is just another splinter in our ass.
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
April 25, 2011, 08:36:42 AM
 #7

im glad seeing people using it Smiley

if you use it and want to see more of things like this from me, please feel free to donate: 1EJXbMi5CjHeNmUQNpZgg72HWzEMX8tVja

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
FooDSt4mP
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
April 26, 2011, 03:22:26 AM
 #8

Sent 5 BTC. I would love btcex support since they charge no fees on trades.  I'll offer 5 BTC for that as well.

As we slide down the banister of life, this is just another splinter in our ass.
kokjo
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000

You are WRONG!


View Profile
April 26, 2011, 08:49:40 AM
 #9

Sent 5 BTC. I would love btcex support since they charge no fees on trades.  I'll offer 5 BTC for that as well.
Thanks Cheesy

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!