TT CORE SDK  0.1
TT CORE SDK documentation
tt_core_sdk::order_profile Struct Reference

POD definition of an order to provide when submitting. More...

#include <orders.hpp>

Public Attributes

std::shared_ptr< Instrumentinstrument
 
order_type type
 
order_side side
 
time_in_force tif
 
uint64_t account = 0
 
uint64_t user_id = 0
 
uint64_t broker_id = 0
 
double price = std::numeric_limits<double>::quiet_NaN()
 
double trigger_price = std::numeric_limits<double>::quiet_NaN()
 
int32_t quantity = 0
 
int32_t display_quantity = 0
 

Detailed Description

POD definition of an order to provide when submitting.

Profiles can be cached and re-used; all fields are copied on submission. Only the fields for a particular order type must be populated.

Definition at line 31 of file orders.hpp.

Member Data Documentation

◆ account

uint64_t tt_core_sdk::order_profile::account = 0

Definition at line 37 of file orders.hpp.

◆ broker_id

uint64_t tt_core_sdk::order_profile::broker_id = 0

Definition at line 39 of file orders.hpp.

◆ display_quantity

int32_t tt_core_sdk::order_profile::display_quantity = 0

Definition at line 43 of file orders.hpp.

◆ instrument

std::shared_ptr<Instrument> tt_core_sdk::order_profile::instrument

Definition at line 33 of file orders.hpp.

◆ price

double tt_core_sdk::order_profile::price = std::numeric_limits<double>::quiet_NaN()

Definition at line 40 of file orders.hpp.

◆ quantity

int32_t tt_core_sdk::order_profile::quantity = 0

Definition at line 42 of file orders.hpp.

◆ side

order_side tt_core_sdk::order_profile::side

Definition at line 35 of file orders.hpp.

◆ tif

time_in_force tt_core_sdk::order_profile::tif

Definition at line 36 of file orders.hpp.

◆ trigger_price

double tt_core_sdk::order_profile::trigger_price = std::numeric_limits<double>::quiet_NaN()

Definition at line 41 of file orders.hpp.

◆ type

order_type tt_core_sdk::order_profile::type

Definition at line 34 of file orders.hpp.

◆ user_id

uint64_t tt_core_sdk::order_profile::user_id = 0

Definition at line 38 of file orders.hpp.


The documentation for this struct was generated from the following file: