npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bitskins-api

v2.0.1

Published

Unofficial BitSkins API client

Downloads

6

Readme

BitSkins API client

dependencies Status

The unofficial BitSkins API client.

Installation

$ npm install bitskins-api

Example

const BitSkins = require('bitskins-api');
const bitskins = new BitSkins(apiKey, secret);

bitskins.getTradeDetails({ trade_token: 'd3bedb77f7430e68', trade_id: 'ddc126dc3cc4e8a2'  });
bitskins.getMarketData({ names: ['AK-47 | Redline (Field-Tested)'] });

Methods

All of the following methods return a native Promise. Some methods allow you to pass addtional data via an object when calling the API. See the methods API reference to see what data can be sent.

Constructor(apiKey, secret)

  • apiKey - Your BitSkins API key. Can be found in your settings page
  • secret - Your 2FA secret. This is shown to you when enabling 2FA on your account.

Creates a new BitSkins instance.

General

| Name | Description | Reference | |------------------------------|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------| | getAccountBalance() | Returns your account balance. | Link | | getAllItemPrices() | Returns the entire price database used by Bitskins. | Link | | getMarketData(options) | Returns basic pricing data for up to 250 market_hash_name's that are currently on sale. | Link | | getAccountInventory(options) | Returns your account's available inventory on Steam, Bitskins and pending withdrawals. | Link | | getInventoryOnSale(options) | Returns your inventory currently on sale. | Link | | getResetPriceItems(options) | Returns a paginated list of items that need their prices reset. | Link | | getMoneyEvents(options) | Returns historical events that caused changes in your balance. | Link | | requestWithdrawal(options) | Allows you to request withdrawal of available balance on your BitSkins account. | Link | | buyItem(options) | Allows you to buy an item currently on sale. | Link | | sellItem(options) | Allows you to list an item for sale. | Link | | modifySale(options) | Allows you to change the price(s) of item(s) currently on sale. | Link | | withdrawItem(options) | Lets you delist an active sale item and/or re-attempt an item pending withdrawal. | Link | | bumpItem(options) | Lets you bump items currently listed for a fee. | Link | | getBuyHistory(options) | Returns your purchase history. | Link | | getSellHistory(options) | Returns your sell history. | Link | | getItemHistory(options) | Returns bought / sold / listed item history. | Link | | getTradeDetails(options) | Returns info about items trades sent to / from BitSkins | Link | | getRecentSaleInfo(options) | Returns recent sales for a given item name. | Link |

Buy orders

| Name | Description | Reference | |----------------------------------|------------------------------------------------------------|--------------------------------------------------------------------------------------------------| | createBuyOrder(options) | Creates a buy order. | Link | | getExpectedPlaceInQueue(options) | Returns expected place in queue for a buy order. | Link | | cancelBuyOrder(options) | Cancels a given buy order. | Link | | cancelAllBuyOrders(options) | Cancels all buy orders for a given item name. | Link | | getMyBuyOrders(options) | Returns all buy orders placed. | Link | | getMarketBuyOrders(options) | Returns all market orders on the market. | Link | | summarizeBuyOrders() | Returns a summary of all market orders. | Link |

Bitcoin deposits

| Name | Description | Reference | |-----------------------------------|----------------------------------------------|------------------------------------------------------------------------------| | getBitcoinDepositAddress(options) | Returns your accounts bitcoin address. | Link | | getBitcoinDepositRate(options) | Returns the current conversion rate. | Link | | createBitcoinDeposit(options) | Creates a bitcoin deposit. | Link | | getBitcoinDepositStatus(options) | Returns the status of your Bitcoin deposits. | Link |

Giftable coupons

| Name | Description | Reference | |--------------------------|--------------------------------------------|------------------------------------------------------------| | createCoupons(options) | Creates coupons. | Link | | disableCoupons(options) | Disables given coupons. | Link | | getCoupons() | Returns list of coupons created. | Link | | getCouponStatus(options) | Returns the status of all coupons created. | Link | | redeemCoupon(options) | Redeems a given coupon. | Link |