Title: | Web Client to 'TickTrader' |
---|---|
Description: | R Web Client to 'TickTrader' platform. Provides you access to 'TickTrader' platform through Web API <https://ttlivewebapi.fxopen.net:8443/api/doc/index>. |
Authors: | Yury Maisiayonak [aut, cre] |
Maintainer: | Yury Maisiayonak <[email protected]> |
License: | GPL-2 |
Version: | 0.1.3 |
Built: | 2024-12-04 07:14:15 UTC |
Source: | CRAN |
Get Bar History
symbol |
a character. Symbol Name. |
barsType. |
a character. Bars Type. One from c("Ask", "Bid"). |
periodicity. |
a character. Periodicity. From c("S1", "S10", "M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1","MN1") |
startTime |
a POSIXct obj. Start Time in UTC. |
endTime |
a POSIXct obj. End Time in UTC. |
count. |
Integer. Count of returned Bars from startTime. Max is 1000. Can be negative. If count == 0, use time interval between startTime and endTime. |
data.table with Bar Info
Get Pips Value
targetCurrency |
a character. Currency Name. |
symbols |
a character vectors. Symbols vector. |
a data.table with pips value in targetCurrency for every symbol in symbols vector
Get Ticks History
symbol. |
A character. Symbol Name. |
startTime |
a POSIXct obj. Start Time in UTC. |
endTime |
a POSIXct obj. End Time in UTC. |
count. |
Integer. Count of returned Ticks from startTime. Max is 1000. Can be negative. If count == 0, use time interval between startTime and endTime. |
data.table with Ticks Info.
Init RTTWebApiHost
InitRTTWebApiHost( server = "ttlivewebapi.fxopen.com", port = 8443L, id = NULL, key = NULL, secret = NULL )
InitRTTWebApiHost( server = "ttlivewebapi.fxopen.com", port = 8443L, id = NULL, key = NULL, secret = NULL )
server |
a character. Web Address. |
port |
an integer. Port Number. Default is 8443 |
id |
a character. HMAC client id. |
key |
a character. HMAC client key. |
secret |
a character. HMAC secret key. |
RTTWebApiHost ref class.
RTTWebApiHost
client.
RTTWebClient obj.
GetBarsHistory(
symbol,
barsType = "Bid",
periodicity = "M1",
startTime,
endTime = as.POSIXct(Sys.Date(), tz = "GMT"),
count = 0L
)
Get Bar History
GetCurrencyInfo()
Get All Currencies
GetCurrentQuotes()
Get All Current Quotes
GetDividends()
Get All Dividends
GetPipsValue(targetCurrency, symbols)
Get Pips Value
GetSymbolsInfo()
Get All Symbols
GetTickHistory(
symbol,
startTime,
endTime = as.POSIXct(Sys.Date(), tz = "GMT"),
count = 0L
)
Get Bar History