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

error on place trade order type TRAILING_STOP_MARKET‏ #31

Open
aref-r opened this issue Aug 5, 2024 · 0 comments
Open

error on place trade order type TRAILING_STOP_MARKET‏ #31

aref-r opened this issue Aug 5, 2024 · 0 comments

Comments

@aref-r
Copy link

aref-r commented Aug 5, 2024

hello,
I want to place trade order type TRAILING_STOP_MARKET.
please check if I set correctly these 3 values ?

for example when coin current price is 3 usdt.

(leverage => 4)
(
'price' => 0.2 (distance of trail by usdt),
'quantity' => 5 / 3 * 4 (my margin is 5 usdt divide by coin current price multiply by leverage) ,
'type' => 'TRAILING_STOP_MARKET',
'activationPrice' => 3.2 (when the price arrive to 3.2 usdt the trail start with 'price = 0.2 usdt' distance),
)

this means stoploss price move (trail) from 2.8 to 3 when price come to 3.2 usdt.

is it incorrect ?

because I get this error :

[code] => 110425
[msg] => Please ensure that the minimum nominal value of the order placed must be greater than 2u

and when I set the price field equal the current price of coin, I get this error :

[code] => 110418
[msg] => Must be less than the maximum trailing distance of 1.3158

should I open TRAILING_STOP_MARKET with minimum margin of 250 usdt ?

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

No branches or pull requests

1 participant