Skip to main content

Why do I see 'Error with order through API' when using TradingView?

This error means your TradingView Alert is trying to sell a coin for which you have no open position. No action is needed.

Written by Pete Darby
Updated over 2 weeks ago

This error means your trading bot received a sell order via a TradingView Alert for a coin that has no open position. There's nothing to sell, so the bot skips the order.

Cause

This can occur in two situations:

  • Your quote currency is BTC and a TradingView Alert triggers a sell order for BTC. Because BTC is your quote currency, there's no open BTC position to sell.

  • Your quote currency is a different currency, such as USDT, but a TradingView Alert sends a sell order for BTC while you have no open BTC positions.

Example of the error

Example of the error in your trading bot output:

05/23/2024 12:26:12 PM INFO Received TradingView alert, forwarding SELL order for BTC to API.

05/23/2024 12:26:12 PM ERROR Error with order through API. App name: TradingView. Error: No open positions for coin: BTC. Nothing to do.

Did this answer your question?