TradingView
dokang
27 maj 2022 11:48

TradingHook 

Solana / KRWUpBit

Opis

Library "TradingHook"
This library is a client script for making a webhook signal formatted string to TradingHook webhook server.

buy_message(password, amount, order_name) Make a buy Message for TradingHook.
  Parameters:
    password: (string) [Required] password that you set in .env file.
    amount: (float) [Optional] amount. If not set, your strategy qty will be sent.
    order_name: (string) [Optional] order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

sell_message(password, percent, order_name) Make a sell message for TradingHook.
  Parameters:
    password: (string) [Required] password that you set in .env file.
    percent: (string) [Required] what percentage of your quantity you want to sell.
    order_name: (string) [Optional] order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

You can use TradingHook WebServer open source code in github(github.com/jangdokang/TradingHook)

Informacje o Wersji

entry_message(password, amount, leverage, order_name)
  Make a Entry Message for TradingHook.
  Parameters:
    password: (string) [Required] password that you set in .env file.
    amount: (float) [Optional] amount. If not set, your strategy qty will be sent.
    leverage: (int) [Optional] leverage. If not set, your leverage doesn't change.
    order_name: (string) [Optional] order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

close_message(password, percent, order_name)
  Make a close message for TradingHook.
  Parameters:
    password: (string) [Required] password that you set in .env file.
    percent: (string) [Required] what percentage of your quantity you want to close.
    order_name: (string) [Optional] order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

Informacje o Wersji

v3

Now you can make close order by amount (or percent). Be careful to use!

close_message(password, percent, amount, order_name)
  Make a close message for TradingHook.
  Parameters:
    password: (string) [Required] password that you set in .env file.
    percent: (string) [Required/Optional] what percentage of your quantity you want to close.
    amount: (float) [Required/Optional] quantity you want to close.
    order_name: (string) [Optional] order_name. The default name is "Order".
  Returns: (string) A string containing the formatted webhook message.

Informacje o Wersji

Support BITGET exchange
Komentarze
moofasa2luy1
유투브 강의 잘 보고 있습니다~
Więcej