RTTWebClient"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
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())


Try the RTTWebClient package in your browser

Any scripts or data that you put into this service are public.

RTTWebClient documentation built on March 18, 2022, 7:48 p.m.