Bitcoin Forum
December 10, 2016, 05:23:09 AM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Python bindings for the Mt. Gox trading API (v0.01)  (Read 1831 times)
kokjo
Legendary
*
Offline Offline

Activity: 1050

You are WRONG!


View Profile
April 19, 2011, 09:41:22 PM
 #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
1481347389
Hero Member
*
Offline Offline

Posts: 1481347389

View Profile Personal Message (Offline)

Ignore
1481347389
Reply with quote  #2

1481347389
Report to moderator
1481347389
Hero Member
*
Offline Offline

Posts: 1481347389

View Profile Personal Message (Offline)

Ignore
1481347389
Reply with quote  #2

1481347389
Report to moderator
1481347389
Hero Member
*
Offline Offline

Posts: 1481347389

View Profile Personal Message (Offline)

Ignore
1481347389
Reply with quote  #2

1481347389
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481347389
Hero Member
*
Offline Offline

Posts: 1481347389

View Profile Personal Message (Offline)

Ignore
1481347389
Reply with quote  #2

1481347389
Report to moderator
sortedmush
Full Member
***
Offline Offline

Activity: 126


The geek shall inherit the earth.


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

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

Activity: 1050

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: 270


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: 1259


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


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

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


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

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!