calculateTargetPriceTrade
simple function for finding arbitraging trades
Deprecated
Returns
trade direction/size in order to push price to a targetPrice,
[
direction => direction of trade required, PositionDirection
tradeSize => size of trade required, TODO-PRECISION
entryPrice => the entry price for the trade, PRICE_PRECISION
targetPrice => the target price PRICE_PRECISION
]
calculateTargetPriceTrade simple function for finding arbitraging trades
Deprecated
Returns
trade direction/size in order to push price to a targetPrice,
[ direction => direction of trade required, PositionDirection tradeSize => size of trade required, TODO-PRECISION entryPrice => the entry price for the trade, PRICE_PRECISION targetPrice => the target price PRICE_PRECISION ]