Skip to main content

Interface: IBrokerConnectionAdapterFactory

Broker.IBrokerConnectionAdapterFactory

Methods​

createDelegate​

createDelegate<T>(): IDelegate<T>

Creates a Delegate object

Type parameters​

NameType
Textends Function

Returns​

IDelegate<T>


createPriceFormatter​

createPriceFormatter(priceScale?, minMove?, fractional?, minMove2?, variableMinTick?): IPriceFormatter

Creates a price formatter.

Parameters​

NameTypeDescription
priceScale?numberDefines the number of decimal places. It is 10^number-of-decimal-places. If a price is displayed as 1.01, pricescale is 100; If it is displayed as 1.005, pricescale is 1000.
minMove?numberThe amount of price precision steps for 1 tick. For example, since the tick size for U.S. equities is 0.01, minmov is 1. But the price of the E-mini S&P futures contract moves upward or downward by 0.25 increments, so the minmov is 25.
fractional?booleanFor common prices, is false or it can be skipped. For more information on fractional prices, refer to Fractional format.
minMove2?numberFor common prices, is 0 or it can be skipped.
variableMinTick?stringFor common prices, is string (for example, 0.01 10 0.02 25 0.05) or it can be skipped. For more information, refer to Variable tick size.

Returns​

IPriceFormatter


createWatchedValue​

createWatchedValue<T>(value?): IWatchedValue<T>

Creates a WatchedValue object

Type parameters​

Name
T

Parameters​

NameType
value?T

Returns​

IWatchedValue<T>