Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BSwap api #513

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Implement BSwap api #513

wants to merge 1 commit into from

Conversation

crazyguitar
Copy link

Hi,

I Implemented some BSwap APIs. The following snippet is how I tested.

'use strict'

const Binance = require('./node-binance-api');
const binance = new Binance().options({
    APIKEY: process.env.APIKEY,
    APISECRET: process.env.APISECRET,
})

async function _() {
  try {
    console.log(await binance.bswapPools())
    console.log(await binance.bswapLiquidity({ timestamp: Date.now() }))
    console.log(await binance.bswapLiquidityOps({ timestamp: Date.now() }))
    console.log(await binance.bswapQuote({ timestamp: Date.now(), quoteAsset: 'USDT', baseAsset: 'BUSD', quoteQty: 100.0 }))
    console.log(await binance.bswapHistory({ timestamp: Date.now() }))
  } catch (e) {
    console.log(e)
  }
}

_()
  .then(() => {})
  .catch(e => console.log(e))

Could someone help review? I am researching BSwap currently. I need these apis.

thanks,
chang-ning

Signed-off-by: chang-ning <[email protected]>
@jaggedsoft
Copy link
Owner

Thank you very much for your contribution.

Help wanted to support crazyguitar in finishing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants