v23
Добавлено:
feesBinanceFutures()
configureStopLossByPrice(src, price_value, max_loss, fees)
Parameters:
src (tradePositionModel)
price_value (float)
max_loss (float)
fees (exchangeFeesModel)
addTakeProfitByRR(src, rr, position_piece_prc, fees)
Parameters:
src (tradePositionModel)
rr (float)
position_piece_prc (float)
fees (exchangeFeesModel)
configureBreakevenBySL(src, fees)
Parameters:
src (tradePositionModel)
fees (exchangeFeesModel)
createTradePosition(ticker, side, started_on, leverage)
Creates empty order
Parameters:
ticker (string)
side (int)
started_on (int)
leverage (int)
exchangeFeesModel
Fields:
market_order_prc (series__float)
limit_order_prc (series__float)
orderPriceModel
Fields:
price (series__float)
price_with_commision (series__float)
offset (series__float)
offset_with_commision (series__float)
orderAmountModel
Fields:
coins (series__float)
value (series__float)
position_piece_prc (series__float)
orderStateModel
Fields:
is_completed (series__bool)
completed_on (series__integer)
breakevenOrderModel
Fields:
target (|orderPointModel|#OBJ)
trigger (|orderPriceModel|#OBJ)
trailingStopOrderModel
Fields:
trigger (|orderPriceModel|#OBJ)
lag_offset (series__float)
tradePositionModel
Fields:
ticker (series__string)
side (series__integer)
leverage (series__integer)
created_on (series__integer)
enter (|orderPointModel|#OBJ)
stop_loss (|orderPointModel|#OBJ)
breakeven (|breakevenOrderModel|#OBJ)
trailing_stop (|trailingStopOrderModel|#OBJ)
take_profit_collection (array__|orderPointModel|#OBJ)
state (|orderStateModel|#OBJ)
Обновлено:
createOrderView(src, profit_color, loss_color, enter_color)
Parameters:
src (tradePositionModel)
profit_color (simple color)
loss_color (simple color)
enter_color (simple color)
repaintView(src, time_now)
Parameters:
src (orderView)
time_now (int)
repaintViews(views, time_now, remove_completed)
Parameters:
views (orderView[])
time_now (int)
remove_completed (bool)
updateOrderState(src, top_price, bottom_price, time_now)
Parameters:
src (tradePositionModel)
top_price (float)
bottom_price (float)
time_now (int)
updateOrderStates(models, top_price, bottom_price, time_now, remove_completed)
Parameters:
models (tradePositionModel[])
top_price (float)
bottom_price (float)
time_now (int)
remove_completed (bool)
configureEnterPoint(src, price, amount)
Parameters:
src (tradePositionModel)
price (orderPriceModel)
amount (orderAmountModel)
configureStopLoss(src, price, amount)
Parameters:
src (tradePositionModel)
price (orderPriceModel)
amount (orderAmountModel)
addTakeProfit(src, price, amount)
Parameters:
src (tradePositionModel)
price (orderPriceModel)
amount (orderAmountModel)
configureBreakeven(src, target, trigger)
Parameters:
src (tradePositionModel)
target (orderPointModel)
trigger (orderPriceModel)
configureTrailingStop(src, trigger, lag_offset, exchange_fees)
Configures "Trailing Stop"
Parameters:
src (tradePositionModel): (orderModel, required) target order model
trigger (orderPriceModel)
lag_offset (float): (float, percent, required) Execute stop order if price reverse back on [lag_offset] percents
exchange_fees (exchangeFeesModel)
Удалено:
configureTrailingStopByStopLoss(src, lag_offset_rr, trigger_offset_rr, commision_percent)
createOrder(ticker, side, leverage)
Creates empty order
createOrderWithEnterPoint(ticker, side, enter, max_amount_usd, leverage)
Creates order with enter point
createOrderWithEST(ticker, side, enter, max_amount_usd, sl, rr, max_loss, leverage, commision_percent)
Creates order with enter point, stop loss and take profit
breakevenModel
trailingStopModel
enterPointModel
orderModel