< Position Management | Contents >
In [1]:
import pandas as pd
import oandapyV20
import oandapyV20.endpoints.transactions as trans
import configparser
In [2]:
config = configparser.ConfigParser()
config.read('../config/config_v20.ini')
accountID = config['oanda']['account_id']
access_token = config['oanda']['api_key']
In [3]:
client = oandapyV20.API(access_token=access_token)
In [4]:
r = trans.TransactionList(accountID)
In [5]:
client.request(r)
Out[5]:
In [6]:
r = trans.TransactionDetails(accountID=accountID, transactionID=49)
In [7]:
client.request(r)
Out[7]:
< Position Management | Contents >