1.0.0-alpha.27 • Published 1 year ago

@statsanytime/trade-bots-csgoempire v1.0.0-alpha.27

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@statsanytime/trade-bots-csgoempire

Official CSGOEmpire plugin for the StatsAnytime Trade Bots framework.

Installation

pnpm install @statsanytime/trade-bots-csgoempire

Usage

For information on how to use this in the context of the framework, we recommend reading the official framework documentation here.

This package exports the following functions:

createCSGOEmpirePlugin

Creates a new CSGOEmpire plugin instance. This takes a single options argument:

export interface CSGOEmpirePluginOptions {
    apiKey: string;
}

withdraw

Withdraws the item currently in the context (for example, the item that was just listed). This function does not take any arguments.

scheduleDeposit

Schedules the deposit of a new item. The item in question is the one currently in the context (for example, the item that was just withdrawn). This function takes a single options argument:

export interface CSGOEmpireScheduleDepositOptions {
    amountUsd: number;
}

deposit / depositMultiple

This function makes a deposit request right away. It takes a single options argument:

export interface ScheduledDeposit {
    marketplace: string;
    withdrawMarketplace: string;
    amountUsd: number;
    assetId: string;
    marketplaceData?: Record<string, any>;
    withdrawalId: string;
}

Under the hood, scheduleDeposit uses this function to make the deposit request once the item is tradable.

onItemBuyable

Listen for items that become buyable. This function takes a single callback argument.

1.0.0-alpha.27

1 year ago

1.0.0-alpha.26

2 years ago

1.0.0-alpha.25

2 years ago

1.0.0-alpha.24

2 years ago

1.0.0-alpha.23

2 years ago

1.0.0-alpha.20

2 years ago

1.0.0-alpha.19

2 years ago

1.0.0-alpha.18

2 years ago

1.0.0-alpha.17

2 years ago

1.0.0-alpha.16

2 years ago

1.0.0-alpha.15

2 years ago

1.0.0-alpha.14

2 years ago

1.0.0-alpha.12

2 years ago

1.0.0-alpha.11

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

1.0.0-alpha.0

2 years ago