# opskins-express-trade

> Trade offer management library for Trade.OPSkins.com

Latest version **1.0.0** (published 2018-06-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install opskins-express-trade
pnpm add opskins-express-trade
yarn add opskins-express-trade
bun add opskins-express-trade
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-06-25 |
| First published | 2018-06-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | ekifox & Jack Flux |
| Maintainers | ekifox |
| Keywords | opskins, trade, api, wrapper, bot, skins, csgo, op skins, vgo skins |

## Links

- npm: https://www.npmjs.com/package/opskins-express-trade
- Repository: https://gitlab.com/ekifox/opskins-express-trade
- Homepage: https://gitlab.com/ekifox/opskins-express-trade/tree/master
- Issues: https://gitlab.com/ekifox/opskins-express-trade/issues
- npm.io page: https://npm.io/package/opskins-express-trade

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.87.0
- [authenticator](https://npm.io/package/authenticator.md) ^1.1.5

## Recent versions

- 1.0.0 (latest) — 2018-06-25

## README

# Trade offer management library for Trade.OPSkins.com
# Usage

```js
const OPSkinsTrade = require('opskins-express-trade');

const tradeBot = new OPSkinsTrade('your-api-key', 'your-2fa-secret');

tradeBot.pollTrades();

tradeBot.on('newOffer', (offer) => {
  console.log(offer);
});

tradeBot.on('sentOffer', (offer) => {
  console.log(offer);
});

tradeBot.on('offerUpdated', (offer) => {
  console.log(offer);
});
```

# Offer States
- STATE_ACTIVE = 2;                             /** The offer is active and the recipient can accept it to exchange the items */
- STATE_ACCEPTED = 3;                           /** The recipient accepted the offer and items were exchanged */
- STATE_EXPIRED = 5;                            /** The offer expired from inactivity */
- STATE_CANCELED = 6;                           /** The sender canceled the offer */
- STATE_DECLINED = 7;                           /** The recipient declined the offer */
- STATE_INVALID_ITEMS = 8;                      /** One of the items in the offer is no longer available/eligible so the offer was canceled automatically */
#
For further documentation please click [here](https://github.com/OPSkins/trade-opskins-api).

---
_Source: https://npm.io/package/opskins-express-trade · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
