20#ifndef DEPRECATE_SUPER_STRING
21 #define DEPRECATE_SUPER_STRING
23#ifndef SUPER_STRING_IS_STD_STRING
24 #define SUPER_STRING_IS_STD_STRING
129 void TTLog(
const LogLevel level,
const char* category,
const char* msg);
131 void TTLogInfo(
const char *format, ...) __attribute__((format(printf, 1, 2)));
132 void TTLogWarning(const
char *format, ...) __attribute__((format(printf, 1, 2)));
133 void TTLogError(const
char *format, ...) __attribute__((format(printf, 1, 2)));
179 const uint64_t accountId = 0,
181 const uint64_t minTimestamp = 0,
182 const uint64_t maxTimestamp = 0,
183 const char* orderId =
nullptr);
187 const bool implieds,
const bool allowTTImplieds,
188 const bool includeSimPrices,
191 const
bool implieds, const
bool allowTTImplieds,
192 const
bool includeSimPrices,
214 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)
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).
IFillDownloadCallbackHandler * IFillDownloadCallbackHandlerPtr
void UnsubscribeTimeAndSales(const uint64_t subscriptionId) noexcept
IOrderBookEventHandler * IOrderBookEventHandlerPtr
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)
ISDKAlgoManager * ISDKAlgoManagerPtr
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 SubscribePrices(InstrumentPtr instrument, const uint16_t depth, const bool implieds, const bool allowTTImplieds, const bool includeSimPrices, IPriceEventHandlerPtr listener, const uint64_t accountId=0) noexcept
shared_ptr< Order > OrderPtr
shared_ptr< const Instrument > InstrumentPtr
CustomerProfileCollectionPtr GetCustomerProfiles()
Returns the CustomerProfiles.
OrderPtr CreateOrder(InstrumentPtr instrument)
shared_ptr< InstrumentSearchResults > InstrumentSearchResultsPtr
bool Initialize(const TTSDKOptions &options, IEventHandlerPtr sdkEventObserver, IOrderBookEventHandlerPtr orderHandler, ISDKAlgoManagerPtr algoManager=nullptr) noexcept
Initialize the TT CoreSDK shared library.
shared_ptr< const AccountCollection > AccountCollectionPtr
void UnsubscribePrices(const uint64_t subscriptionId) noexcept
shared_ptr< const CustomerProfileCollection > CustomerProfileCollectionPtr
IEventHandler * IEventHandlerPtr
PositionReserveBucket GetRiskBucket(InstrumentPtr instrument, const uint64_t accountId) noexcept
Returns the current position reserve bucket for the instrument and account.
uint64_t SubscribeTimeAndSales(InstrumentPtr instrument, const bool includeSimPrices, ITimeSalesEventHandlerPtr listener, const uint64_t accountId=0) noexcept
ITimeSalesEventHandler * ITimeSalesEventHandlerPtr
void StartAccount(const uint64_t accountId)
starts orders,fills and positions for the given account.
void TTLogInfo(const char *format,...) __attribute__((format(printf
shared_ptr< const AlgoDefinition > AlgoDefinitionPtr
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...
IPriceEventHandler * IPriceEventHandlerPtr
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)