In order to use this API wrapper you need to have API keys from TradeOgre.
Open Account
--> Settings
--> API Keys
From file
from tradeogre import TradeOgre
trade_ogre = TradeOgre().load_key('TradeOgre.key')
In this case the key must be on the first line and the secret must be on the second line
As direct input in class
from tradeogre import TradeOgre
trade_ogre = TradeOgre(key=some_key, secret=some_secret)
As direct input in method
from tradeogre import TradeOgre
trade_ogre = TradeOgre()
reply = trade_ogre.balances(key=some_key, secret=some_secret)
Retrieve a listing of all markets
trade_ogre.markets()
Retrieve the current order book for a market
trade_ogre.order_book('BTC-XMR')
Retrieve the ticker (current price) for a market
trade_ogre.ticker('BTC-XMR')
Retrieve the history of the last trades for a market
trade_ogre.history('BTC-XTL')
Get the balance of a specific currency
You need to provide API key and secret for this method
trade_ogre.balance('BTC')
Retrieve all balances for your account
You need to provide API key and secret for this method
trade_ogre.balance()
Submit a buy order to the order book for a market
You need to provide API key and secret for this method
trade_ogre.buy('BTC-XMR', '10', '0.0123') # market, quantity, price
Submit a sell order to the order book for a market
You need to provide API key and secret for this method
trade_ogre.sell('BTC-XMR', '10', '0.0123') # market, quantity, price
Retrieve the active orders for your account
You need to provide API key and secret for this method
trade_ogre.orders('BTC-XMR')
Retrieve information about a specific order
You need to provide API key and secret for this method
trade_ogre.order('1702a7bc-6a18-92c0-c1fe-aaf581d2352d')
Cancel an order on the order book
You need to provide API key and secret for this method
trade_ogre.cancel('a40ac710-8dc5-b5a8-aa69-389715197b14')