keymasterviriya1150

RememberCodeGateway

May 6th, 2019
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.43 KB | None | 0 0
  1.           int rando = rnd.Next(1, 8);
  2.  
  3.             for (int i = 0; i < book.items_total; i++){
  4.                 book.items[i].type = type;
  5.                 book.items[i].price = price[i];
  6.                 if( i == 9)
  7.                 {
  8.                      rando = rando;
  9.                 }
  10.                 else
  11.                 {
  12.                      rando = rnd.Next(1, 8);
  13.                 }
  14.                
  15.            
  16.                 //
  17.  
  18.  
  19.                 if (CompareSymbol(symbol, "XRPBTC." + activeExchange))
  20.                 {
  21.                     mPly = 8;
  22.                 }
  23.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(8));
  24.                 else if (CompareSymbol(symbol, "ETHUSDT." + activeExchange))
  25.                 {
  26.                     mPly = 9;
  27.                 }
  28.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  29.                 else if (CompareSymbol(symbol, "ETHBTC." + activeExchange))
  30.                 {
  31.                     mPly = 9;
  32.                 }
  33.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  34.                 else if (CompareSymbol(symbol, "LTCUSDT." + activeExchange))
  35.                 {
  36.                     mPly = 9;
  37.                 }
  38.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  39.                 else if (CompareSymbol(symbol, "LTCBTC." + activeExchange))
  40.                 {
  41.                     mPly = 9;
  42.                 }
  43.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  44.                 else if (CompareSymbol(symbol, "XRPEUR." + activeExchange))
  45.                 {
  46.                     mPly = 9;
  47.                 }
  48.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  49.                 else if (CompareSymbol(symbol, "LTCEUR." + activeExchange))
  50.                 {
  51.                     mPly = 9;
  52.                 }
  53.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  54.                 else if (CompareSymbol(symbol, "ETHEUR." + activeExchange))
  55.                 {
  56.                     mPly = 9;
  57.                 }
  58.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  59.                 else if (CompareSymbol(symbol, "BTCEUR." + activeExchange)) mPly = 9;
  60.                 // book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  61.                 else if (CompareSymbol(symbol, "LTCUSD." + activeExchange)) mPly = 9;
  62.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  63.                 else if (CompareSymbol(symbol, "ETHUSD." + activeExchange)) mPly = 9;
  64.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  65.                 else if (CompareSymbol(symbol, "BCHUSD." + activeExchange)) mPly = 9;
  66.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  67.                 //----------------------------------------------------------------------------------
  68.                 else if (CompareSymbol(symbol, "BTCUSD.bitmex")) mPly = 3;
  69.                 else if (CompareSymbol(symbol, "BTCUSD." + activeExchange)) mPly = 9;
  70.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  71.                 else if (CompareSymbol(symbol, "BTCUSDT." + activeExchange)) mPly = 8;
  72.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(8));
  73.                 else if (CompareSymbol(symbol, "XRPUSD." + activeExchange)) mPly = 8;
  74.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(8));
  75.                 else if (CompareSymbol(symbol, "XRPUSDT." + activeExchange)) mPly = 8;
  76.                 //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(8));
  77.  
  78.                 //------------------------------------------------------------------------------
  79.                 else mPly = 9;
  80.                     //book.items[i].volume_ext = Convert.ToInt64((volume[i] * 10) * GenerateMultiplier(9));
  81.  
  82.                 book.items[i].volume_ext = Convert.ToInt64((volume[i] * 100 / rando) * GenerateMultiplier(mPly));
Advertisement
Add Comment
Please, Sign In to add comment