Learn R Programming

PoloniexR (version 0.0.1)

SetPoloniexPublicCommands: Setter for REST service commands for the Poloniex public API.

Description

Setter for REST service commands for the Poloniex public API.

Usage

SetPoloniexPublicCommands(theObject, commands)

Arguments

theObject

The public client API object on which the function should be called

commands

- a list with Key/value string pairs Represents the command strings for the respective public API functions.

Value

theObject - a copy of the object with the modified command slot

Examples

Run this code
# NOT RUN {
poloniex.public <- PoloniexPublicAPI()
GetPoloniexPublicCommands(poloniex.public)
commands.new <- list(returnTicker = "returnTicker.new",
                    return24hVolume = "return24hVolume.new")
poloniex.public <- SetPoloniexPublicCommands(poloniex.public,
                                             commands = commands.new)
GetPoloniexPublicCommands(poloniex.public)
# }

Run the code above in your browser using DataLab