$ git clone https://github.com/israelcastilloh/oandav3
$ pip install requests
$ pip install pandas
or if you have Python3:
$ git clone https://github.com/israelcastilloh/oandav3
$ pip3 install requests
$ pip3 install pandas
from oandav3 import *
connection = API(environment, access_token, account_id)
''' @ Params:
environment = 'practice' / 'live' / 'sandbox'
access_token = 'asda567b...'
account_id = 'XXX-XXX-XXXXXXXX-XXX'
'''
endpoint = connection.endpoint(**params)
'''''''''
Accounts
'''''''''
get_instruments(self)
get_accounts(self)
account_detail(self)
account_summary(self)
'''''''''
Instruments
'''''''''
instrument_candles(self, instrument)
order_book(self, instrument)
position_book(self, instrument)
'''''''''
Orders
'''''''''
orders(self)
pending_orders(self)
single_order(self, orderID)
'''''''''
Trade
'''''''''
trades(self)
open_trades(self)
single_trade(self, tradeID)
'''''''''
Position
'''''''''
positions(self)
open_positions(self)
instrument_position(self, instrument)
'''''''''
Transactions
'''''''''
transactions(self)
single_transaction(self, transaction)
transaction_range(self, from_t_id, to_t_id)
transaction_since(self, since_t_id)
'''''''''
Pricing
'''''''''
pricing(self, instrument)
'''
Developed by: Israel Castillo. // Financial Engineer // castillo.israelh@gmail.com
'''