placeOrder: Place an Order

View source: R/placeOrder.R

placeOrderR Documentation

Place an Order

Description

Call this function to place an order. The order status will be returned by the orderStatus event.

Usage

placeOrder(orderId, contract, order, ib_con)

Arguments

orderId

The order id. You must specify a unique value. When the order START_API returns, it will be identified by this tag. This tag is also used when canceling the order.

contract

A valid contract. You can create a valid contract with the Contract function or one of the contract helper functions.

order

A valid Order. You can create a valid order with the Order function or one of the order type functions.

ib_con

A valid ib connection.

Value

Returns an order status message

Examples

Example to follow.

pverspeelt/ibapir documentation built on March 29, 2022, 11:57 a.m.