kis_order | R Documentation |
Order stocks.
kis_order(
stock_code,
order_qty,
order_price,
prdt_code,
order_type = "00",
buy_flag = TRUE
)
kis_buy(stock_code, order_qty, order_price, prdt_code, order_type = "00")
kis_sell(stock_code, order_qty, order_price, prdt_code, order_type = "00")
stock_code |
A string specifying stock code |
order_qty |
A numeric or string specifying order quantity |
order_price |
A numeric or string specifying order price |
prdt_code |
A string specifying account product code |
order_type |
A string specifying order type |
buy_flag |
A boolean specifying flag |
A list contains rt_cd: return code, msg_cd: message code, msg1: message
An order result
## Not run:
## buy
kis_buy(
stock_code = "stock code",
order_qty = "your order quantity",
order_price = "your order price"
)
## sell
kis_sell(
stock_code = "stock code",
order_qty = "your order quantity",
order_price = "your order price"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.