kis_order {kisopenapi}R Documentation

KIS order

Description

Order stocks.

Usage

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")

Arguments

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

Value

A list contains rt_cd: return code, msg_cd: message code, msg1: message

An order result

Examples

## 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)


[Package kisopenapi version 0.0.2 Index]