v10
업데이트됨
entry_message(password, percent, leverage, margin_mode, kis_number)
Create a entry message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for entry based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
order_message(password, percent, leverage, margin_mode, kis_number)
Create a order message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for entry based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
close_message(password, percent, margin_mode, kis_number)
Create a close message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for close based on your wallet balance.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
exit_message(password, percent, margin_mode, kis_number)
Create a exit message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
percent (float): (float) [Optional] The percent for exit based on your wallet balance.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account. Default 1
Returns: (string) A json formatted string for webhook message.
manual_message(password, exchange, base, quote, side, qty, price, percent, leverage, margin_mode, kis_number, order_name)
Create a manual message for POABOT
Parameters:
password (string): (string) [Required] The password of your bot.
exchange (string): (string) [Required] The exchange
base (string): (string) [Required] The base
quote (string): (string) [Required] The quote of order message
side (string): (string) [Required] The side of order messsage
qty (float): (float) [Optional] The qty of order message
price (float): (float) [Optional] The price of order message
percent (float): (float) [Optional] The percent for order based on your wallet balance.
leverage (int): (int) [Optional] The leverage of entry. If not set, your levereage doesn't change.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
kis_number (int): (int) [Optional] The number of koreainvestment account.
order_name (string): (string) [Optional] The name of order message
Returns: (string) A json formatted string for webhook message.
real_qty(qty, precision, leverage, contract_size)
Get exchange specific real qty
Parameters:
qty (float): (float) [Optional] qty
precision (float): (float) [Optional] precision
leverage (int): (int) [Optional] leverage
contract_size (float): (float) [Optional] contract_size
Returns: (float) exchange specific qty.
method set(this, password, start_time, end_time, leverage, margin_mode, contract_size, kis_number, entry_percent, close_percent, exit_percent, fixed_qty, fixed_cash, real, auto_alert_message, hide_trade_line)
Set bot object.
Namespace types: bot
Parameters:
this (bot)
password (string): (string) [Optional] password for poabot.
start_time (int): (int) [Optional] start_time timestamp.
end_time (int): (int) [Optional] end_time timestamp.
leverage (int): (int) [Optional] leverage.
margin_mode (string): (string) [Optional] The margin mode for trade(only for OKX). "cross" or "isolated"
contract_size (float)
kis_number (int): (int) [Optional] kis_number for poabot.
entry_percent (float): (float) [Optional] entry_percent for poabot.
close_percent (float): (float) [Optional] close_percent for poabot.
exit_percent (float): (float) [Optional] exit_percent for poabot.
fixed_qty (float): (float) [Optional] fixed qty.
fixed_cash (float): (float) [Optional] fixed cash.
real (bool): (bool) [Optional] convert qty for exchange specific.
auto_alert_message (bool): (bool) [Optional] convert alert_message for exchange specific.
hide_trade_line (bool): (bool) [Optional] if true, Hide trade line. Default false.
Returns: (void)