3 #include <tt_core_sdk/enums.hpp> 20 bool IsValid (
void)
const noexcept;
44 double TickPriceUp (
double price, uint32_t offset)
const noexcept;
50 double TickPriceDown (
double price, uint32_t offset)
const noexcept;
148 std::vector<instrument_leg>
legs;
156 bool IsAlgoVersion (
const std::string& version)
const noexcept;
158 bool IsAlgoSO (
void)
const noexcept;
159 uint64_t
KeyId (
void)
const noexcept;
double strike_price
Strike price.
uint32_t tick_denom
Ticking: Denominator.
uint32_t tick_num
Ticking: Numerator.
uint64_t synthetic_instr_id
Synthetic Instrument ID.
std::string alias
Security Alias.
currency_code
ISO currency codes.
uint16_t option_code_id
Option code ID.
uint16_t combo_type_id
Combo type ID.
product_type_id
Product Type identifiers.
double TickPriceUp(double price, uint32_t offset) const noexcept
Returns the tradable price a number of ticks above the specified price.
Definition of a contract on an exchange.
uint64_t product_version
Product version.
std::string security_id
Security ID.
enum instr_state state
Internal.
bool IsAlgoADL(void) const noexcept
enum currency_code product_currency
Native product currency.
bool IsValid(void) const noexcept
Check if the instrument data is valid.
std::shared_ptr< Instrument > DownloadInstrument(uint64_t instr_id)
Synchronous Instrument download by instrument id.
bool supports_implieds
Instrument supports implied prices.
bool IsPriceOnTick(double price) const noexcept
Returns if the specified price is on a tradable tick.
uint32_t maturity_date
Maturity date.
double tick_size
Interval between tradable prices.
uint64_t underlying_instr_id
Underlying Instrument ID.
bool IsAlgoVersion(const std::string &version) const noexcept
uint64_t product_id
Product ID.
double tick_value
Value of one tick in the default currency.
std::shared_ptr< Instrument > instr
enum product_type_id product_type_id
Product type.
std::string name
Instrument Name (e.g. ESZ4)
uint64_t algo_compliance_id
Algo identifier for exchange compliance.
std::string series_key
Unique TT assigned ID.
double GetMinTickSize(void) const noexcept
Returns the minimum tick size.
static constexpr size_t MAX_TICK_TABLE_ROW_COUNT
Max supported tick table entries.
double point_value
Value of one point in the default currency.
std::string price_topic
The topic which price update is send on.
uint64_t instr_version
Instrument version.
uint64_t instr_id
Instrument ID.
std::string implied_rules
Implied rules.
uint32_t starting_date
Starting date.
uint64_t containing_instr_id
std::vector< instrument_leg > legs
double RoundPriceToTick(double price, rounding round) const noexcept
Returns the specified price rounded to a tradable tick.
enum market market_id
Market Identifier.
uint16_t option_scheme_id
Option scheme ID.
double OffsetPrice(double price, int32_t offset, rounding round) const noexcept
Returns the tradable price a number of ticks from the specified price.
uint32_t security_exchange_id
std::string symbol
Product Symbol (e.g. ES)
std::unique_ptr< opaque_data > opaque
bool IsAlgoSO(void) const noexcept
double display_factor
Display Factor.
double min_price_increment
Minimal price increment.
struct tt_core_sdk::Instrument::tick_table_data::row rows[MAX_TICK_TABLE_ROW_COUNT]
int32_t PriceToTicks(double price) const noexcept
Returns the specified price in tradable ticks.
uint32_t last_trading_date
Last trading date.
uint32_t first_delivery_date
First delivery date.
std::string alias
Alias (e.g. ES Dec14)
struct tt_core_sdk::Instrument::tick_table_data tick_table
uint16_t series_term_id
Series term ID.
std::string price_formula
User-defined price formula for a spread.
double TickPriceDown(double price, uint32_t offset) const noexcept
Returns the tradable price a number of ticks below the specified price.
std::string name
Security Desc.
uint64_t KeyId(void) const noexcept
bool is_not_tradable
Instrument is not tradable.