Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Market

Index

Methods

acceptCounterOffer

  • acceptCounterOffer(counterOfferId: number): Promise<void>
  • Accept a counter offer

    Parameters

    • counterOfferId: number

      the counterOfferId to accept

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

buy

  • buy(marketId: number, price: number): Promise<void>
  • Buy a market element

    Parameters

    • marketId: number

      the marketId you want to buy

    • price: number

      it's price (?)

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

cancelCounterOffer

  • cancelCounterOffer(counterOfferId: number): Promise<void>
  • Withdraw a counter offer

    Parameters

    • counterOfferId: number

      counterOfferId to withdraw

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

createListing

  • createListing(id: number, type: string, price: number, minOffer?: undefined | number): Promise<number>
  • Create a listing for the given entity id

    Parameters

    • id: number

      the entity id

    • type: string

      of the entity

    • price: number

      price of the listing

    • Optional minOffer: undefined | number

      minOffer value (no minOffer if empty)

    Returns Promise<number>

    a Promise resolved with the response or rejected in case of error

declineCounterOffer

  • declineCounterOffer(counterOfferId: number): Promise<void>
  • Decline a given counter offer

    Parameters

    • counterOfferId: number

      the counterOfferId to decline

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

getListings

  • getListings(templateId: number, page?: number, sort?: undefined | string, type?: string): Promise<MarketListing[]>
  • Get the market listings for a given cardId

    Parameters

    • templateId: number

      the templateId of the listings you want to get

    • Default value page: number = 1

      the page to get

    • Optional sort: undefined | string

      price / ?

    • Default value type: string = "card"

      card / pack / sticker

    Returns Promise<MarketListing[]>

    a Promise resolved with the response or rejected in case of error

getMarketplaceTemplates

  • getMarketplaceTemplates(page?: number, filters: Record<string, string | boolean>, type?: string): Promise<MarketTemplate[]>
  • Get the marketplace templates (list of CardTemplates with the lowest price)

    List of filters

    • season: Founders, 2017, 2018, 2019
    • price: asc, desc
    • need (need only): boolean
    • signed: boolean
    • teamId
    • playerId
    • treatmentId
    • cardRarity: To be updqted
    • tier: To be updqted

    Parameters

    • Default value page: number = 1

      the page to get

    • filters: Record<string, string | boolean>

      the filters to be used in the request

    • Default value type: string = "card"

      card / pack / sticker

    Returns Promise<MarketTemplate[]>

    a Promise resolved with the response or rejected in case of error

makeCounterOffer

  • makeCounterOffer(marketId: number, currentPrice: number, counterPrice: number): Promise<void>
  • Create a counter offer for a given listing

    Parameters

    • marketId: number

      listing id

    • currentPrice: number

      the current price

    • counterPrice: number

      the counter offer price

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

removeListing

  • removeListing(listingId: number): Promise<void>
  • Remove a given listingId

    Parameters

    • listingId: number

      listingId to remove

    Returns Promise<void>

    a Promise resolved with the response or rejected in case of error

Legend

  • Constructor
  • Method
  • Property

Generated using TypeDoc