kis_revise_cancel {kisopenapi}R Documentation

KIS revise and cancel orders

Description

Revise and cancel orders.

Usage

kis_revise_cancel(
  order_no,
  order_branch,
  order_qty,
  order_price,
  prdt_code,
  order_dv = "00",
  cncl_dv = c("01", "02"),
  qty_all_yn = c("Y", "N")
)

kis_revise(
  order_no,
  order_branch,
  order_qty,
  order_price,
  prdt_code,
  order_dv = "00",
  cncl_dv = "01",
  qty_all_yn = c("Y", "N")
)

kis_cancel(
  order_no,
  order_branch,
  order_qty,
  order_price,
  prdt_code,
  order_dv = "00",
  cncl_dv = "02",
  qty_all_yn = c("Y", "N")
)

kis_cancel_all()

Arguments

order_no

A string specifying order number

order_branch

A string specifying branch 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_dv

A string specifying limit order(00) or market order(01)

cncl_dv

A string specifying revise(01) or cancel(02)

qty_all_yn

A string specifying total order quantity or not

Value

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

response

Examples

## revise
## Not run: 
kis_revise(
  order_no = "your order number",
  order_branch = "your order branch", order_qty = "your order quantity",
  order_price = "your order price"
)

## End(Not run)
## cancel
## Not run: 
kis_cancel(
  order_no = "your order number",
  order_branch = "your order branch", order_qty = "your order quantity",
  order_price = "your order price"
)

## End(Not run)
## cancel all
## Not run: 
kis_cancel_all()

## End(Not run)


[Package kisopenapi version 0.0.2 Index]