20#ifndef DEPRECATE_SUPER_STRING
21 #define DEPRECATE_SUPER_STRING
23#ifndef SUPER_STRING_IS_STD_STRING
24 #define SUPER_STRING_IS_STD_STRING
128 void TTLog(
const LogLevel level,
const char* category,
const char* msg);
182 const char*
orderId =
nullptr);
213 const double quantity,
const double maxClipSize)
noexcept;
virtual void OnAccountStatus(const AccountConnectionStatus &connectionStatus)
virtual void OnInstrumentUpdated(InstrumentPtr, InstrumentPtr)
virtual void OnStatus(const Status status)=0
@ ORDER_THROTTLE_LIMIT_EXCEEDED
virtual void OnInstrumentDeleted(InstrumentPtr)
virtual void OnAlgoDefinitionUpdated(AlgoDefinitionPtr, AlgoDefinitionPtr)
virtual void OnAlgoDefinitionDeleted(AlgoDefinitionPtr)
Interface for listening to order and position events. There is one OrderBookEventHandler set in the S...
Interface for listening to price subscription events.
Interface for listening to sdk algo events.
Interface for listening to time and sales subscription events.
void void TTLogWarning(const char *format,...) __attribute__((format(printf
void void void TTLogError(const char *format,...) __attribute__((format(printf
InstrumentPtr GetInstrument(const uint64_t instrumentId, Instrument::ResponseCode &code)
Gets the instrument definition (active only).
void UnsubscribeTimeAndSales(const uint64_t subscriptionId) noexcept
const char *const GetExchAssocId() noexcept
OrderPtr CreateOrderFromPriceSub(uint64_t priceSubscriptionId)
Create orders for exchange or synthetic (ASE/AGG) instruments.
InstrumentSearchResultsPtr SearchInstruments(const char *query, const char *markets, Instrument::ResponseCode &code)
Searches for instrument (active only).
AccountCollectionPtr GetAccounts()
Returns the user accounts.
void void void void TTLog(const LogLevel level, const char *category, const char *msg)
OrderPtr CreateAlgoOrder(AlgoDefinitionPtr algo, InstrumentPtr instrument)
Create order for an ADL Algo (akin to launching an algo in the gui)
void Shutdown() noexcept
Shutdown the TT CoreSDK shared library.
uint64_t SubscribeTimeAndSales(InstrumentPtr instrument, const bool includeSimPrices, ITimeSalesEventHandlerPtr listener) noexcept
CustomerProfileCollectionPtr GetCustomerProfiles()
Returns the CustomerProfiles.
OrderPtr CreateOrder(InstrumentPtr instrument)
bool Initialize(const TTSDKOptions &options, IEventHandlerPtr sdkEventObserver, IOrderBookEventHandlerPtr orderHandler, ISDKAlgoManagerPtr algoManager=nullptr) noexcept
Initialize the TT CoreSDK shared library.
void UnsubscribePrices(const uint64_t subscriptionId) noexcept
PositionReserveBucket GetRiskBucket(InstrumentPtr instrument, const uint64_t accountId) noexcept
Returns the current position reserve bucket for the instrument and account.
void StartAccount(const uint64_t accountId)
starts orders,fills and positions for the given account.
uint64_t SubscribePrices(InstrumentPtr instrument, const uint16_t depth, const bool implieds, const bool allowTTImplieds, const bool includeSimPrices, IPriceEventHandlerPtr listener) noexcept
void TTLogInfo(const char *format,...) __attribute__((format(printf
const char * Version() noexcept
Returns the version of the SDK.
bool ReleaseRisk(InstrumentPtr instrument, const uint64_t accountId, const RiskSide side) noexcept
Releases the previously allocated quantity of risk for the given instrumentId/accountId/side.
AlgoDefinitionPtr GetAlgoDefinition(const char *algoName, AlgoDefinition::ResponseCode &code)
Gets the algo definition (active only).
bool ReserveRisk(InstrumentPtr instrument, const uint64_t accountId, const RiskSide side, const double quantity, const double maxClipSize) noexcept
Reserves a quantity of risk for the given instrumentId/accountId/side to be used to by this app to av...
bool DownloadFills(IFillDownloadCallbackHandlerPtr obj, const uint64_t accountId=0, const ttsdk::MarketId marketId=ttsdk::MarketId::INVALID, const uint64_t minTimestamp=0, const uint64_t maxTimestamp=0, const char *orderId=nullptr)