rib: Helper Functions for TWS

positionsR Documentation

Helper Functions for TWS

Description

Several convenience functions for connecting synchronously to the TWS.

Usage

executions(port = 7496, clientId = 1)
order_status(port = 7496, clientId = 1)
positions(port = 7496, clientId = 1)

Arguments

port

integer

clientId

integer

Details

The functions follow the same pattern: connect to the TWS, send requests, receive and process results, and disconnect. Results are typically arranged as data frames.

Warning: these functions are very experimental, and returned results may change.

Value

A data.frame. If there are no executions, orders or positions, the functions return NULL invisibly.

Author(s)

Enrico Schumann

Examples


  positions()


enricoschumann/IButils documentation built on March 13, 2024, 3:36 p.m.