RTTWebClient

library(RTTWebClient)
library(lubridate)

Example of RTTWebApiHost (Wrapper about RTTWebClient to make request from R easy)

Init RTTWebApiHost obj

ttWebApiHost <- InitRTTWebApiHost(server = "ttlivewebapi.fxopen.com")

Get Dividends data.table

print(ttWebApiHost$GetDividends())

Get Symbol data.table

print(ttWebApiHost$GetSymbolsInfo())

Get BarHistory data.table

print(ttWebApiHost$GetBarsHistory("EURUSD", "Bid","M1", now("UTC") - days(1), now("UTC")))

Get TicksHistory data.table

print(ttWebApiHost$GetTickHistory("EURUSD",  now("UTC") - days(1), now("UTC")))

Get Currency data.table

print(ttWebApiHost$GetCurrencyInfo())