No Partying Mariachis

    waxpeer
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.6 • Public • Published

    WaxPeer

    WaxPeer API wrapper for Node.js

    Full API documentation here

    Installation

    $ npm install waxpeer

    Initialization

    import { Waxpeer } from 'waxpeer'
     
    const WP = new Waxpeer(WAXPEER_API)

    Mirroring items

    const items = await WP.getItemsList()
     
    console.log(items)

    Fetching all items

    const items = await WP.getPrices()
     
    console.log(items)

    Buying items with ID

    const purchase = await WP.buyItemWithId(17441538677, 798500, 'oFvyi0Ma', '378049039')
     
    console.log(purchase)

    Buying items with Name

    const purchase = await WP.buyItemWithName('AK-47 | Redline (Field-Tested)', 15000, 'oFvyi0Ma', '378049039')
     
    console.log(purchase)

    Fetching status of the purchase

    const status = await WP.tradeRequestStatus(35124)
     
    console.log(status)

    Validate tradelink

    const validate = await WP.validateTradeLink(
      `https://steamcommunity.com/tradeoffer/new/?partner=378049039&token=qPFEAtZR`,
    )
     
    console.log(validate)

    Search items via market name

    const search = await wp.searchItems('AK-47 | Redline (Field-Tested)')
     
    console.log(search)

    Fetching your account info

    const user = await WP.getProfile()
     
    console.log(user)

    List your items

    const list = await wp.listItemsSteam([{ item_id: 19095088593, price: 16000 }])
     
    console.log(list)

    Get your sell offers

    const listedItems = await wp.myListedItems()
     
    console.log(listedItems)

    Update your sell offer

    let update = await wp.editItems([{ item_id: 19095088593, price: 11110 }])
     
    console.log(update)

    Install

    npm i waxpeer

    DownloadsWeekly Downloads

    74

    Version

    1.2.6

    License

    ISC

    Unpacked Size

    30 kB

    Total Files

    15

    Last publish

    Collaborators

    • ity
    • madmad