Learn R Programming

PoloniexR (version 0.0.1)

SetPoloniexTradingCommands: Setter for REST service commands for the Poloniex Trading API.

Description

Setter for REST service commands for the Poloniex Trading API.

Usage

SetPoloniexTradingCommands(theObject, commands)

Arguments

theObject

The Trading 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 Trading API functions.

Value

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

Examples

Run this code
# NOT RUN {
poloniex.trading <- PoloniexTradingAPI(your.key, your.secret)
GetPoloniexTradingCommands(poloniex.trading)
commands.new <- list(returnTradeHistory = "returnTradeHistory.new",
                     withdraw = "withdraw.new")
poloniex.trading <- SetPoloniexTradingCommands(poloniex.trading,
                                               commands = commands.new)
GetPoloniexTradingCommands(poloniex.trading)
# }

Run the code above in your browser using DataLab