-
Notifications
You must be signed in to change notification settings - Fork 23
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
place trade order use type TRAILING_STOP_MARKET #28
Comments
Hello,
You can place an individual order with type=TRAILING_STOP_MARKET.
From: "aref ***@***.***>
Date: Fri, Mar 29, 2024, 21:18
Subject: [BingX-API/BingX-swap-api-doc] place trade order use type TRAILING_STOP_MARKET (Issue #28)
To: ***@***.***>
Cc: ***@***.***>
hello, I want to open trade order in perpetual futures with this endpoint :
/openApi/swap/v2/trade/order
and the type is TRAILING_STOP_MARKET
as the documentation confirmed, there is three field for TRAILING_STOP_MARKET :
"activationPrice",
"priceRate",
"price"
I couldn't find a explanation for these three field in doc .
I want to set takeprofit and stoploss too,
but seems these two field is Only supports type: STOP_MARKET/STOP or Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT.
and I have no idea to insert takeprofit price and stoploss price when opening order, can any one help me ?
… —
Reply to this email directly, view it on GitHub<#28>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFJFFAUVOLTM5XLWKZV3NODY2VSYZAVCNFSM6AAAAABFONNYCKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTKMZTGE4TGNY>.
You are receiving this because you are subscribed to this thread.[image: https://github.com/notifications/beacon/BFJFFAUFKS4CST4VC4CMG2DY2VSYZA5CNFSM6AAAAABFONNYCKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIIC2IME.gif]Message ID: ***@***.***>
|
If I create an individual order, how to link the new order to the previous order? (to prevent create additional order) |
Hello,
If you want to place a trailing stop order for an existing position, you need to use type=TRAILING_TP_SL. The system will find the position by symbol and positionSide fields.
… From: "aref ***@***.***>
Date: Sun, Mar 31, 2024, 19:47
Subject: Re: [BingX-API/BingX-swap-api-doc] place trade order use type TRAILING_STOP_MARKET (Issue #28)
To: ***@***.***>
Cc: ***@***.***>, ***@***.***>
> Hello, You can place an individual order with type=TRAILING_STOP_MARKET.
If I create an individual order, how to link the new order to the previous order? (to prevent create additional order)
—
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFJFFAW6IPYPUJPCBQ3HYK3Y27ZUZAVCNFSM6AAAAABFONNYCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGY3DSNZRG4>.
You are receiving this because you commented.[image: https://github.com/notifications/beacon/BFJFFAV2MAMSCB4X5JXN7QLY27ZUZA5CNFSM6AAAAABFONNYCKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTY5MFRK.gif]Message ID: ***@***.***>
|
thanks, But for set the takeProfit and stopLoss in single api request, what type I have to use for order ? stopLoss : Only supports type: STOP_MARKET/STOP |
The trailing take-profit and stop-loss scenarios use the same TYPE to indicate that it is a conditional order, and you don't have to specify whether it is a take-profit order or a stop-loss order, you just have to fill in TRAILING_TP_SL.
From: "aref ***@***.***>
Date: Mon, Apr 1, 2024, 19:12
Subject: Re: [BingX-API/BingX-swap-api-doc] place trade order use type TRAILING_STOP_MARKET (Issue #28)
To: ***@***.***>
Cc: ***@***.***>, ***@***.***>
thanks, But for set the takeProfit and stopLoss in single api request, what type I have to use for order ?
because you specified in the documentation :
stopLoss : Only supports type: STOP_MARKET/STOP
takeProfit : Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT
… —
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFJFFAWOHQCFCJHBI7ZJS6TY3E6HZAVCNFSM6AAAAABFONNYCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZGU4TOMBRGU>.
You are receiving this because you commented.[image: https://github.com/notifications/beacon/BFJFFAWEA54YX55GWRYS2VTY3E6HZA5CNFSM6AAAAABFONNYCKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTY7EYVO.gif]Message ID: ***@***.***>
|
Yes I know, for example if I use MAEKET type for place new order , I can not set the takeProfit and stopLoss , and I have to send separate api with type TRAILING_TP_SL after create order. I need to set TP & SL in first request, not the second. (before trailing) generally is it necessary to send twice api request ? |
Hello,
If you want to place an order with TP/SL, the optional types for TP are TAKE_PROFIT and TAKE_PROFIT_MARKET, and for SL are STOP and STOP_MARKET.
From: "aref ***@***.***>
Date: Mon, Apr 1, 2024, 23:34
Subject: Re: [BingX-API/BingX-swap-api-doc] place trade order use type TRAILING_STOP_MARKET (Issue #28)
To: ***@***.***>
Cc: ***@***.***>, ***@***.***>
Yes I know,
I mean the first api for place order (before trailing) . what type for this order I have to use ? just as the takeProfit and stopLoss need to separate type and don't have an in common type.
… for example if I use MAEKET type for place new order , I can not set the takeProfit and stopLoss , and I have to send separate api with type TRAILING_TP_SL after create order.
I need to set TP & SL in first request, not the second. (before trailing)
—
Reply to this email directly, view it on GitHub<#28 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BFJFFAQOKQLT4GU7KIN7DHLY3F5ADAVCNFSM6AAAAABFONNYCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZHE4DGMZVHA>.
You are receiving this because you commented.[image: https://github.com/notifications/beacon/BFJFFARGYGBFZUNTR2YH7WDY3F5ADA5CNFSM6AAAAABFONNYCKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTY74LH4.gif]Message ID: ***@***.***>
|
hello, I want to open trade order in perpetual futures with this endpoint :
/openApi/swap/v2/trade/order
and the type is TRAILING_STOP_MARKET
as the documentation confirmed, there is three field for TRAILING_STOP_MARKET :
"activationPrice",
"priceRate",
"price"
I couldn't find a perfect explanation for these three field in doc .
I want to set takeprofit and stoploss too,
but seems these two field is Only supports type: STOP_MARKET/STOP or Only supports type: TAKE_PROFIT_MARKET/TAKE_PROFIT.
and I have no idea to insert takeprofit price and stoploss price when opening order, can any one help me ?
The text was updated successfully, but these errors were encountered: