MyNixOS website logo
Description

Web Client to 'TickTrader'.

R Web Client to 'TickTrader' platform. Provides you access to 'TickTrader' platform through Web API <https://ttlivewebapi.fxopen.net:8443/api/doc/index>.

RTTWebClient

This package works with WebAPi of TickTrader Server.

Prerequisites

This package use httr, jsonlite, data.table r libraries. Please install them before using.

How to install RTTWebClient?

if(!require(devtools)) {install.packages("devtools"); library(devtools)}
if(require(RTTWebClient)) {detach("package:RTTWebClient", unload=TRUE); remove.packages("RTTWebClient")}
install_github("SoftFx/TTWebClient-R")	 

Examples

You can use function ttInitialize to set server name and port:

  1. cryptottlivewebapi.fxopen.net - TT Exchange FXOPEN WebAPI
  2. ttlivewebapi.fxopen.com - TT Margin Live WebAPI

Port is 8443 as default

To get Quotes, Bars, etc. info you should call function from R list object which was created by InitRTTWebApiHost with the appropriate parameters. (if you don't set HMAC parameters the public connect will be used). If you don't set any parameters connection to ttlivewebapi.fxopen.com will be requested.

library(RTTWebClient)
options(scipen = 999)
publicClient <- InitRTTWebApiHost(server = "ttlivewebapi.fxopen.com")  #for public interface
#or use (just for example) for private interface 
#privateClient <- InitRTTWebApiHost(server = "ttlivewebapi.fxopen.com", id = rfdfddfsdfs, key = fdfsdfs, secret = fdfsdfsdf) 
symbols <- publicClient$GetSymbolsInfo()
pipsValue <- publicClient$GetPipsValue("USD", c("EURUSD", "USDCAD"))
bars <- publicClient$GetBarsHistory("EURUSD", "Bid", "M1", Sys.time(), Sys.time(), -1)
ticks <- publicClient$GetTickHistory("EURUSD", Sys.time(), Sys.time(), -1)
currentQuotes <- publicClient$GetCurrentQuotes()
dividends <- publicClient$GetDividends()
currency <- publicClient$GetCurrencyInfo()
Metadata

Version

0.1.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows