getOrders | R Documentation |
This function retrieves information about orders from different brokers/exchanges
getOrders(
src = "",
board = "MOEX",
api.key = "",
orderId = "",
clientId = "",
stopOrders = FALSE,
verbose = TRUE
)
src |
Character string specifying the source broker/exchange (e.g., "tinkoff", "finam", "alor") |
board |
Character string specifying the trading board (default is "MOEX") |
api.key |
Character string specifying the API key for the broker/exchange |
orderId |
Character string specifying the order ID to retrieve (default is "") |
clientId |
Character string specifying the client ID for the broker/exchange |
stopOrders |
Logical specifying whether to retrieve stop orders (default is FALSE) |
verbose |
Logical specifying whether to display additional information (default is TRUE) |
A list containing order information from the broker/exchange
Not for the faint of heart. All profits and losses related are yours and yours alone. If you don't like it, write it yourself.
Vyacheslav Arbuzov
getTrades
cancelOrder
placeOrder
# Retrieve all orders from Tinkoff
getOrders(src = "tinkoff", api.key = "your_api_key", clientId = "your_client_id")
# Retrieve all orders from Finam
getOrders(src = "finam", api.key = "your_api_key", clientId = "your_client_id")
# Retrieve all orders from Alor
getOrders(src = "alor", api.key = "your_api_key", clientId = "your_client_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.