- Aug 17, 2006
- 2,546
- 1
- 81
Ok I have no clue how to do this, but basically I want to make a program that I can use to trade with. I want to be able to say "place order to sell x amount at $x price each." The available data I have to use is in JSON format.
Data:
Ticker Data http://mtgox.com/code/data/ticker.php
Market Depth http://mtgox.com/code/data/getDepth.php
Recent Trades http://mtgox.com/code/data/getTrades.php
Here is the rest of the info I am given:
Get your current balance https://mtgox.com/code/getFunds.php?name=blah&pass=blah
Place an order to Buy BTC https://mtgox.com/code/buyBTC.php?name=blah&pass=blah&amount=#&price=#
returns a list of your open orders
Place an order to Sell BTC https://mtgox.com/code/sellBTC.php?name=blah&pass=blah&amount=#&price=#
returns a list of your open orders
Fetch a list of your open Orders https://mtgox.com/code/getOrders.php?name=blah&pass=blah
oid: Order ID
type: 1 for sell order or 2 for buy order
status: 1 for active, 2 for not enough funds
Cancel an order https://mtgox.com/code/cancelOrder.php?name=blah&pass=blah&oid=#&type=#
oid: Order ID
type: 1 for sell order or 2 for buy order
Send BTC https://mtgox.com/code/withdraw.php...=BTC&btca=bitcoin_address_to_send_to&amount=#
It can be very simple, doesn't need to have an interface of any sort. I have very basic programming experience with C++, but that's about it. I'm just looking for a place to start and some help from somebody that might know what to do.
EDIT: Please help me in post 15 -> http://forums.anandtech.com/showpost.php?p=32014307&postcount=15. I'm having some troubles now.
Data:
Ticker Data http://mtgox.com/code/data/ticker.php
Market Depth http://mtgox.com/code/data/getDepth.php
Recent Trades http://mtgox.com/code/data/getTrades.php
Here is the rest of the info I am given:
Get your current balance https://mtgox.com/code/getFunds.php?name=blah&pass=blah
Place an order to Buy BTC https://mtgox.com/code/buyBTC.php?name=blah&pass=blah&amount=#&price=#
returns a list of your open orders
Place an order to Sell BTC https://mtgox.com/code/sellBTC.php?name=blah&pass=blah&amount=#&price=#
returns a list of your open orders
Fetch a list of your open Orders https://mtgox.com/code/getOrders.php?name=blah&pass=blah
oid: Order ID
type: 1 for sell order or 2 for buy order
status: 1 for active, 2 for not enough funds
Cancel an order https://mtgox.com/code/cancelOrder.php?name=blah&pass=blah&oid=#&type=#
oid: Order ID
type: 1 for sell order or 2 for buy order
Send BTC https://mtgox.com/code/withdraw.php...=BTC&btca=bitcoin_address_to_send_to&amount=#
It can be very simple, doesn't need to have an interface of any sort. I have very basic programming experience with C++, but that's about it. I'm just looking for a place to start and some help from somebody that might know what to do.
EDIT: Please help me in post 15 -> http://forums.anandtech.com/showpost.php?p=32014307&postcount=15. I'm having some troubles now.
Last edited:
