This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-predictions / Market

Market ​

Predictions market: a question with a yes/no answer. Prices are integers in cents (1 to 99: 62 = 62 centavos per contract, which pays 100 if right); volumes and limits in cents of the settlement currency; quantities in contracts.

Properties ​

bestAskNo ​

bestAskNo: number

Best no ask, in cents.


bestAskYes ​

bestAskYes: number

Best yes ask, in cents.


bestBidNo ​

bestBidNo: number

Best no bid, in cents.


bestBidYes ​

bestBidYes: number

Best yes bid, in cents.


createdAt? ​

optional createdAt?: string

Creation (ISO 8601).


description ​

description: string

Description.


eventId ​

eventId: string

Event id.


eventTitle ​

eventTitle: string

Event title.


id ​

id: string

Market id.


lastPriceNo ​

lastPriceNo: number

Last no price, in cents (0 without trades).


lastPriceYes ​

lastPriceYes: number

Last yes price, in cents (0 without trades).


liquidityMode ​

liquidityMode: LiquidityMode

Liquidity source.


makerFeeBps ​

makerFeeBps: number

Maker fee, in basis points.


maxPosition ​

maxPosition: number

Maximum position per user, in cents.


minOrderSize ​

minOrderSize: number

Minimum order size, in cents.


openInterest ​

openInterest: number

Open contracts.


outcomes? ​

optional outcomes?: MarketOutcome[]

Market options, when the gateway sends them.


resolution ​

resolution: MarketResolution

Outcome (unspecified while unresolved).


resolutionCriteria ​

resolutionCriteria: string

Resolution criteria.


resolvedAt? ​

optional resolvedAt?: string

When it was resolved (ISO 8601), if it already was.


settlementCurrency ​

settlementCurrency: string

Settlement currency (ISO 4217, fixed at market creation); '' when the gateway omits it.


status ​

status: MarketStatus

Status.


takerFeeBps ​

takerFeeBps: number

Taker fee, in basis points.


ticker? ​

optional ticker?: string

Readable ticker (e.g. ELEICAO-A-26OUT), when present.


tickSize ​

tickSize: number

Price increment, in cents.


title ​

title: string

Market title.


totalVolume ​

totalVolume: number

Total volume, in cents.


updatedAt? ​

optional updatedAt?: string

Last update (ISO 8601).


volume24h ​

volume24h: number

Volume of the last 24 hours, in cents.