@cloudbet/market-helper
Version:
SDK to generate localized sport market information
14 lines (13 loc) • 968 B
TypeScript
import { MarketType, SportType } from './sports-core';
/** @description function to check if its relevant to a totals market */
export declare const isMarketTotals: (marketKey: MarketType) => boolean;
/** @description function to check if its relevant to a handicap market */
export declare const isMarketHandicap: (marketKey: MarketType) => boolean;
/** @description function to check if its relevant to a correct score market */
export declare const isMarketCorrectScore: (marketKey: MarketType) => boolean;
/** @description get all the markets of sport */
export declare const getAllMarketsBySport: (sportKey: SportType) => Array<MarketType>;
/** @description get all the markets of sport besides the outright market */
export declare const getAllEventMarketsBySport: (sportKey: SportType) => Array<MarketType>;
/** @description get all the outright market of sports */
export declare const getAllOutrightMarketsBySport: (sportKey: SportType) => Array<MarketType>;