FastMM documentation
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::venues::VenueCapabilities Struct Reference

What a connector declares about itself before one exists. More...

#include <fastmm/venues/registry.hpp>

Public Attributes

bool credentials = true
 needs api_key / api_secret outside a dry run
 
bool market_data_keys = false
 Its market data needs the account's keys too (Alpaca): a dry run keeps api_key and api_secret.
 
bool order_entry = true
 can send orders at all
 
bool replace = false
 can amend a resting order in place
 
bool positions = false
 reports positions from the venue
 
bool position_snapshot = false
 Its reconciliation reports the position of every subscribed derivative or stock, flat ones too, before the engine sends an order: a position the session restored from the store is replaced by the venue's own before it is traded on.
 
bool polls = false
 Venue::poll() drives its sockets; the reactor never wakes for them.
 
bool executions = false
 Can fetch what the account executed since a point in time, so a reconciliation replays the fills the private stream missed instead of inferring them from a cum_qty jump.
 
bool account_pools = false
 Runs as a member of an account pool ([venues.
 
bool bind_source = false
 Binds every outbound connection (WebSocket, REST, the blocking control requests) to the section's source address ([venues.
 
bool internal_transfer = false
 Can move an asset between the accounts of a pool (Venue::transfer, VenueCaps::internal_transfer) once it is given the credentials: a pool treasury ([venues.
 

Detailed Description

What a connector declares about itself before one exists.

The session and the engine read these instead of testing kind. replace and order_entry say what the connector can do; whether a given instance does is Venue::caps() (a dry run, order_entry = "none", missing credentials).

Member Data Documentation

◆ credentials

bool fastmm::venues::VenueCapabilities::credentials = true

needs api_key / api_secret outside a dry run

◆ market_data_keys

bool fastmm::venues::VenueCapabilities::market_data_keys = false

Its market data needs the account's keys too (Alpaca): a dry run keeps api_key and api_secret.

◆ order_entry

bool fastmm::venues::VenueCapabilities::order_entry = true

can send orders at all

◆ replace

bool fastmm::venues::VenueCapabilities::replace = false

can amend a resting order in place

◆ positions

bool fastmm::venues::VenueCapabilities::positions = false

reports positions from the venue

◆ position_snapshot

bool fastmm::venues::VenueCapabilities::position_snapshot = false

Its reconciliation reports the position of every subscribed derivative or stock, flat ones too, before the engine sends an order: a position the session restored from the store is replaced by the venue's own before it is traded on.

Spot instruments are never reported this way.

◆ polls

bool fastmm::venues::VenueCapabilities::polls = false

Venue::poll() drives its sockets; the reactor never wakes for them.

◆ executions

bool fastmm::venues::VenueCapabilities::executions = false

Can fetch what the account executed since a point in time, so a reconciliation replays the fills the private stream missed instead of inferring them from a cum_qty jump.

False: a fill that finished an order while the stream was down is not recoverable on this venue, and the engine says so (EngineStats::estimated_reconciles) rather than assuming it did not happen.

◆ account_pools

bool fastmm::venues::VenueCapabilities::account_pools = false

Runs as a member of an account pool ([venues.

<x>] pool_of, core/account_pool.hpp): the order path alone, for the primary's instruments, without market data of its own.

◆ bind_source

bool fastmm::venues::VenueCapabilities::bind_source = false

Binds every outbound connection (WebSocket, REST, the blocking control requests) to the section's source address ([venues.

<x>] source_ip / source_interface, net/source_address.hpp), and selects their endpoints ([venues.<x>] endpoint_select, net/endpoint_selector.hpp).

◆ internal_transfer

bool fastmm::venues::VenueCapabilities::internal_transfer = false

Can move an asset between the accounts of a pool (Venue::transfer, VenueCaps::internal_transfer) once it is given the credentials: a pool treasury ([venues.

<primary>.treasury]) needs it.