trade360-nodejs-sdk
Version:
LSports Trade360 SDK for Node.js
46 lines (45 loc) • 1.67 kB
TypeScript
import { MarketType } from '../../../../entities/core-entities/index.js';
import { HttpRequestDto } from '../../../common/dtos';
/**
* GetMarketsRequest class for sending request
* to get markets from the API. It extends the
* HttpRequestDto class and contains the
* properties for the request to get markets
* from the API.
* @param sportIds The sport IDs to filter the
* markets by in the request to get markets
* from the API.
* @param locationIds The location IDs to filter
* the markets by in the request to get markets
* from the API.
* @param leagueIds The league IDs to filter
* the markets by in the request to get markets
* from the API.
* @param marketIds The market IDs to filter
* the markets by in the request to get markets
* from the API.
* @param isSettleable The flag to filter the
* markets by in the request to get markets from
* the API. The filter meaning is whether
* settlements is supported for this market and
* will be provided for this market by LSports.
* @param marketType The market type to filter
* the markets by in the request to get markets
* from the API. Empty field returns all leagues
* regardless of the market type.
* @param languageId The language ID to filter
* the markets by in the request to get markets
* from the API.
* @returns GetMarketsRequest instance that
* contains the properties for the request to
* get markets from the API.
*/
export declare class GetMarketsRequest extends HttpRequestDto {
sportIds?: number[];
locationIds?: number[];
leagueIds?: number[];
marketIds?: number[];
isSettleable?: boolean;
marketType?: MarketType;
languageId?: number;
}