English 中文(简体)
如何制止损失? [备选案文
原标题:How to Set Trailing Stop Loss? [Bybit API]

I want to set a trailing stop loss for my "LONG" position. For example; Can you show me how to make a trailing stoploss on USDT-M so that when the last price goes 10% above my entry price, it will follow the last price by 5%? Thanks.

我试图这样做,试图在《比比特普朗普文书》中尝试“单贸易停止”这一特征,但我并不成功。

问题回答

This function is working. For Example:

public static void SetTPSL (string symbol, string trailing_stop, string activate_price)
{
        var parameters = new Dictionary<string, object>
        {
            { "positionIdx", 0 },
            { "symbol", symbol },
            { "trailingStop", trailing_stop },
            { "activePrice", activate_price }
        };
    
        var responce = Request.SendRequest("/contract/v3/private/position/trading-stop", HttpMethod.Post, parameters);
}

在该案中,我们把拖车停用在1 000价格和5点——更正

Can you please explain more ,how it works? I am new. What should i do for example, thank you!





相关问题
AES 256 in CTR mode [closed]

ctr mode makes it possible to use a block cipher as a stream cipher but how strong will be the encryption in this mode ?

Illegalkeysize exception

I am using the Bouncy Castle Java cryptographic algorithm implementation. I am getting an IllegalKeySizeException. To overcome this I have even changed my java security jars (local_policy.jar and ...

Can two different strings generate the same MD5 hash code?

For each of our binary assets we generate a MD5 hash. This is used to check whether a certain binary asset is already in our application. But is it possible that two different binary assets generate ...

Load RSA keys from files

I used openSSL command to create 2 files: 1 for RSA public key & 1 for RSA private key. How do I recover RSA keys using C? Specifically, I have these functions: RSA_public_encrypt(read_num, ...

RSA cryptosystem

Hi i am trying to set up an RSA cryptosystem i have all the values except d selected prime numbers: p=1889, q=2003, n=3783667, phi=3779776, e= 61 i got stuck finding d could anyone help me to figure ...

热门标签