Stop-Limit Buy order returns error via API but works on web platform

Assume the price of LTC/USDT is currently 265. Using the Binance.us web platform,
I can successfully place a Stop-Limit BUY order for LTCUSDT with the following parameters:

stop: 250
limit: 250
amount: 0.04
(total: 10 USDT)

Upon placing it, the order displays correctly in Open Orders as Type “Stop-Limit” with the correct price and trigger conditions. So I can confirm this works as expected.

However, when I attempt to place the same order (using the same parameters) via the API, it returns error code -2010: “Order would trigger immediately.”

Params:

symbol: LTCUSDT
side: BUY
type: STOP_LOSS_LIMIT
quantity: 0.04
price: 250
stopPrice: 250

What is the discrepancy here?

Read this pls - Why do you get "Order would immediately trigger" errors

The reason why it works on web is because web interface adjust between TP and SL automatically

Thank you, this did the trick! Coming from the options trading world, I was not familiar with order type TAKE_PROFIT. For others with this same issue, the following article (especially the table at the top) is helpful on how to correctly differentiate between STOP_LOSS and TAKE_PROFIT on BUY and SELL orders: https://www.binance.com/en/support/faq/360040016512