// call by StartTradePackage() public void SetArbitrageSymbolsDate() { ExchangeOrderBook book = api.GetOrderBook(arbitrageSymbol, StaticVariables.maxCount); FindingSymbolsTrading.GetPrice(book, arbitrageSymbolsDate, true); FindingSymbolsTrading.GetPrice(book, arbitrageSymbolsDate, false); arbitrageSymbolsDate.ItsBuy = itsBuyArbitrage; arbitrageSymbolsDate.orderTrade.request.api = StaticVariables.api; arbitrageSymbolsDate.orderTrade.request.ShouldRoundAmount = true; if (itsBuyArbitrage) { arbitrageSymbolsDate.orderTrade.request.Amount = AmountTrade * buySymbolsDate.orderTrade.request.Price; } else { arbitrageSymbolsDate.orderTrade.request.Amount = AmountTrade * sellSymbolsDate.orderTrade.request.Price; } if (arbitrageSymbolsDate.orderTrade.request.Amount < arbitrageSymbolsDate.MinAmount) { arbitrageSymbolsDate.orderTrade.request.Amount = arbitrageSymbolsDate.MinAmount; } }