question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Binance testnet orders expired?

See original GitHub issue
  • OS: Ubuntu Server
  • Programming Language version: NodeJS v14.15.4
  • CCXT version: v1.41.64

I’m trying to place orders on the Binance Spot testnet. However, all orders get status ‘Expired’ without getting filled. I can’t find any docs on the testnet, but is this normal? Do all order just expire on the testnet?

I tried various methods but none work, example: const order = await client.createMarketBuyOrder( strategy.asset + '/' + strategy.currency, strategy.quantity, );

I always get: { info: { symbol: 'BTCBUSD', orderId: 646, orderListId: -1, clientOrderId: 'x-...', transactTime: 1612902432828, price: '0.00000000', origQty: '0.01000000', executedQty: '0.00000000', cummulativeQuoteQty: '0.00000000', status: 'EXPIRED', timeInForce: 'GTC', type: 'MARKET', side: 'BUY', fills: [] }, id: '646', clientOrderId: 'x-...', timestamp: 1612902432828, datetime: '2021-02-09T20:27:12.828Z', lastTradeTimestamp: undefined, symbol: 'BTC/BUSD', type: 'market', timeInForce: 'GTC', postOnly: false, side: 'buy', price: 0, stopPrice: undefined, amount: 0.01, cost: 0, average: undefined, filled: 0, remaining: 0.01, status: 'expired', fee: undefined, trades: [] }

Edit: added complete verbose

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
cherbertcommented, Feb 10, 2021

Probably lack of liquidity in the market you are trading. Try BNB/USDT

1reaction
kroitorcommented, Feb 10, 2021

@cherbert, @reynard80 thx for your help and feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why the MARKET order is partially executed in TESTNET ...
Why the MARKET order is partially executed, sometimes nothing is even sold, but EXPIRED writes. I work for TESTNET Binance API, ...
Read more >
Binance testnet - spot trading
When using TESTNET spot trading, to be specific Market sell order, I'm getting order status EXPIRED, but the order is still executed, which…...
Read more >
Change Log – Binance API Documentation - GitHub Pages
Some orders that were cancelled/expired will be removed gradually from API endpoints, but they are still available from Web UI. Orders that meet...
Read more >
How to Resolve Order Issues
If you would like to expedite your order, consider canceling it from the open orders section and submitting a new order at a...
Read more >
{binance} Spot Trading: Liquidity
1 TRXUSDT 650 2021-11-07 07:11:42 0 5000 0 EXPIRED GTC MARKET SELL ... Let's retrieve the order book for all pairs on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found