israelcastilloh / oandav3

Easy Oanda v3 API Wrapper for Python. Only GET methods so far.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oandav3

Set-Up

$ 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

API

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)

Endpoints

  '''''''''
  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

'''

About

Easy Oanda v3 API Wrapper for Python. Only GET methods so far.


Languages

Language:Python 100.0%