Arbitrage Detection

Algorithmia Platform License · Internet Access

Run an Example

[
  {
    "amounts": [
      1,
      0.741,
      0.658008,
      1.000830168
    ],
    "currencies": [
      0,
      1,
      2,
      0
    ],
    "profit": 0.00083016800000002,
    "ratio": 1.000830168
  },
  {
    "amounts": [
      1,
      0.741,
      0.658008,
      1.062024912,
      1.0004274671039999
    ],
    "currencies": [
      0,
      1,
      2,
      3,
      0
    ],
    "profit": 0.00042746710399987897,
    "ratio": 1.0004274671039999
  },
  {
    "amounts": [
      1,
      0.741,
      0.658008,
      1.062024912,
      1.012109741136,
      1.00704919243032
    ],
    "currencies": [
      0,
      1,
      2,
      3,
      4,
      0
    ],
    "profit": 0.007049192430319984,
    "ratio": 1.00704919243032
  },
  {
    "amounts": [
      1,
      0.741,
      0.658008,
      1.012016304,
      1.0069562224800002
    ],
    "currencies": [
      0,
      1,
      2,
      4,
      0
    ],
    "profit": 0.006956222480000163,
    "ratio": 1.0069562224800002
  },
  {
    "amounts": [
      1,
      0.741,
      0.658008,
      1.012016304,
      1.061605102896,
      1.000032006928032
    ],
    "currencies": [
      0,
      1,
      2,
      4,
      3,
      0
    ],
    "profit": 0.000032006928031957926,
    "ratio": 1.000032006928032
  },
  {
    "amounts": [
      1,
      0.741,
      1.061853,
      1.000265526
    ],
    "currencies": [
      0,
      1,
      3,
      0
    ],
    "profit": 0.0002655259999999604,
    "ratio": 1.000265526
  },
  {
    "amounts": [
      1,
      0.741,
      1.061853,
      0.657287007,
      1.010907416766,
      1.00585287968217
    ],
    "currencies": [
      0,
      1,
      3,
      2,
      4,
      0
    ],
    "profit": 0.005852879682169965,
    "ratio": 1.00585287968217
  },
  {
    "amounts": [
      1,
      0.741,
      1.061853,
      1.0119459089999998,
      1.0068861794549997
    ],
    "currencies": [
      0,
      1,
      3,
      4,
      0
    ],
    "profit": 0.006886179454999697,
    "ratio": 1.0068861794549997
  },
  {
    "amounts": [
      1,
      0.741,
      1.061853,
      1.0119459089999998,
      0.6577648408499999,
      1.0004603229328497
    ],
    "currencies": [
      0,
      1,
      3,
      4,
      2,
      0
    ],
    "profit": 0.0004603229328496994,
    "ratio": 1.0004603229328497
  },
  {
    "amounts": [
      1,
      0.741,
      1.0122060000000002,
      1.0071449700000001
    ],
    "currencies": [
      0,
      1,
      4,
      0
    ],
    "profit": 0.007144970000000139,
    "ratio": 1.0071449700000001
  },
  {
    "amounts": [
      1,
      0.741,
      1.0122060000000002,
      0.6579339000000002,
      1.0007174619000003
    ],
    "currencies": [
      0,
      1,
      4,
      2,
      0
    ],
    "profit": 0.0007174619000003268,
    "ratio": 1.0007174619000003
  },
  {
    "amounts": [
      1,
      0.741,
      1.0122060000000002,
      0.6579339000000002,
      1.0619053146000004,
      1.0003148063532004
    ],
    "currencies": [
      0,
      1,
      4,
      2,
      3,
      0
    ],
    "profit": 0.00031480635320035866,
    "ratio": 1.0003148063532004
  },
  {
    "amounts": [
      1,
      0.741,
      1.0122060000000002,
      1.0618040940000002,
      1.000219456548
    ],
    "currencies": [
      0,
      1,
      4,
      3,
      0
    ],
    "profit": 0.000219456548000041,
    "ratio": 1.000219456548
  },
  {
    "amounts": [
      1,
      0.657,
      0.7397819999999999,
      1.0601076059999999,
      1.0102825485179998,
      1.0052311357754098
    ],
    "currencies": [
      0,
      2,
      1,
      3,
      4,
      0
    ],
    "profit": 0.00523113577540979,
    "ratio": 1.0052311357754098
  },
  {
    "amounts": [
      1,
      0.657,
      0.7397819999999999,
      1.010542212,
      1.00548950094
    ],
    "currencies": [
      0,
      2,
      1,
      4,
      0
    ],
    "profit": 0.005489500940000003,
    "ratio": 1.00548950094
  },
  {
    "amounts": [
      1,
      0.657,
      1.0603980000000002,
      0.7401578040000001,
      1.0110555602640001,
      1.0060002824626801
    ],
    "currencies": [
      0,
      2,
      3,
      1,
      4,
      0
    ],
    "profit": 0.00600028246268014,
    "ratio": 1.0060002824626801
  },
  {
    "amounts": [
      1,
      0.657,
      1.0603980000000002,
      1.010559294,
      1.00550649753
    ],
    "currencies": [
      0,
      2,
      3,
      4,
      0
    ],
    "profit": 0.0055064975300000985,
    "ratio": 1.00550649753
  },
  {
    "amounts": [
      1,
      0.657,
      1.010466,
      1.00541367
    ],
    "currencies": [
      0,
      2,
      4,
      0
    ],
    "profit": 0.005413670000000037,
    "ratio": 1.00541367
  },
  {
    "amounts": [
      1,
      1.061,
      0.740578,
      0.657633264,
      1.000260194544
    ],
    "currencies": [
      0,
      3,
      1,
      2,
      0
    ],
    "profit": 0.00026019454399994757,
    "ratio": 1.000260194544
  },
  {
    "amounts": [
      1,
      1.061,
      0.740578,
      0.657633264,
      1.011439960032,
      1.00638276023184
    ],
    "currencies": [
      0,
      3,
      1,
      2,
      4,
      0
    ],
    "profit": 0.0063827602318400345,
    "ratio": 1.00638276023184
  },
  {
    "amounts": [
      1,
      1.061,
      0.740578,
      1.011629548,
      1.00657140026
    ],
    "currencies": [
      0,
      3,
      1,
      4,
      0
    ],
    "profit": 0.0065714002599999155,
    "ratio": 1.00657140026
  },
  {
    "amounts": [
      1,
      1.061,
      0.740578,
      1.011629548,
      0.6575592062,
      1.0001475526302
    ],
    "currencies": [
      0,
      3,
      1,
      4,
      2,
      0
    ],
    "profit": 0.00014755263019994302,
    "ratio": 1.0001475526302
  },
  {
    "amounts": [
      1,
      1.061,
      0.656759,
      0.739510634,
      1.010171526044,
      1.0051206684137801
    ],
    "currencies": [
      0,
      3,
      2,
      1,
      4,
      0
    ],
    "profit": 0.005120668413780116,
    "ratio": 1.0051206684137801
  },
  {
    "amounts": [
      1,
      1.061,
      0.656759,
      1.010095342,
      1.0050448652900001
    ],
    "currencies": [
      0,
      3,
      2,
      4,
      0
    ],
    "profit": 0.0050448652900001445,
    "ratio": 1.0050448652900001
  },
  {
    "amounts": [
      1,
      1.061,
      1.0111329999999998,
      1.0060773349999999
    ],
    "currencies": [
      0,
      3,
      4,
      0
    ],
    "profit": 0.0060773349999998505,
    "ratio": 1.0060773349999999
  },
  {
    "amounts": [
      1,
      0.888,
      1.3506479999999998,
      1.0008301679999998
    ],
    "currencies": [
      1,
      2,
      0,
      1
    ],
    "profit": 0.000830167999999798,
    "ratio": 1.0008301679999998
  },
  {
    "amounts": [
      1,
      0.888,
      1.3506479999999998,
      1.4330375279999998,
      1.0002601945439997
    ],
    "currencies": [
      1,
      2,
      0,
      3,
      1
    ],
    "profit": 0.0002601945439997255,
    "ratio": 1.0002601945439997
  },
  {
    "amounts": [
      1,
      0.888,
      1.433232,
      1.0003959359999999
    ],
    "currencies": [
      1,
      2,
      3,
      1
    ],
    "profit": 0.0003959359999998746,
    "ratio": 1.0003959359999999
  },
  {
    "amounts": [
      1,
      0.888,
      1.433232,
      1.350104544,
      1.0004274671039999
    ],
    "currencies": [
      1,
      2,
      3,
      0,
      1
    ],
    "profit": 0.00042746710399987897,
    "ratio": 1.0004274671039999
  },
  {
    "amounts": [
      1,
      0.888,
      1.433232,
      1.365870096,
      1.35904074552,
      1.00704919243032
    ],
    "currencies": [
      1,
      2,
      3,
      4,
      0,
      1
    ],
    "profit": 0.007049192430319984,
    "ratio": 1.00704919243032
  },
  {
    "amounts": [
      1,
      0.888,
      1.365744,
      1.3589152800000002,
      1.0069562224800002
    ],
    "currencies": [
      1,
      2,
      4,
      0,
      1
    ],
    "profit": 0.006956222480000163,
    "ratio": 1.0069562224800002
  },
  {
    "amounts": [
      1,
      0.888,
      1.365744,
      1.3589152800000002,
      1.44180911208,
      1.00638276023184
    ],
    "currencies": [
      1,
      2,
      4,
      0,
      3,
      1
    ],
    "profit": 0.0063827602318400345,
    "ratio": 1.00638276023184
  },
  {
    "amounts": [
      1,
      0.888,
      1.365744,
      1.432665456,
      1.000000488288
    ],
    "currencies": [
      1,
      2,
      4,
      3,
      1
    ],
    "profit": 4.882880000334211e-7,
    "ratio": 1.000000488288
  },
  {
    "amounts": [
      1,
      0.888,
      1.365744,
      1.432665456,
      1.349570859552,
      1.000032006928032
    ],
    "currencies": [
      1,
      2,
      4,
      3,
      0,
      1
    ],
    "profit": 0.000032006928031957926,
    "ratio": 1.000032006928032
  },
  {
    "amounts": [
      1,
      1.433,
      1.000234
    ],
    "currencies": [
      1,
      3,
      1
    ],
    "profit": 0.0002340000000000675,
    "ratio": 1.000234
  },
  {
    "amounts": [
      1,
      1.433,
      1.349886,
      1.000265526
    ],
    "currencies": [
      1,
      3,
      0,
      1
    ],
    "profit": 0.0002655259999999604,
    "ratio": 1.000265526
  },
  {
    "amounts": [
      1,
      1.433,
      0.887027,
      1.364247526,
      1.35742628837,
      1.00585287968217
    ],
    "currencies": [
      1,
      3,
      2,
      4,
      0,
      1
    ],
    "profit": 0.005852879682169965,
    "ratio": 1.00585287968217
  },
  {
    "amounts": [
      1,
      1.433,
      1.365649,
      1.358820755,
      1.006886179455
    ],
    "currencies": [
      1,
      3,
      4,
      0,
      1
    ],
    "profit": 0.006886179454999919,
    "ratio": 1.006886179455
  },
  {
    "amounts": [
      1,
      1.433,
      1.365649,
      1.358820755,
      0.892745236035,
      1.00523113577541
    ],
    "currencies": [
      1,
      3,
      4,
      0,
      2,
      1
    ],
    "profit": 0.005231135775410012,
    "ratio": 1.00523113577541
  },
  {
    "amounts": [
      1,
      1.433,
      1.365649,
      0.8876718499999999,
      1.3501488838499998,
      1.00046032293285
    ],
    "currencies": [
      1,
      3,
      4,
      2,
      0,
      1
    ],
    "profit": 0.00046032293284992143,
    "ratio": 1.00046032293285
  },
  {
    "amounts": [
      1,
      1.366,
      1.35917,
      1.00714497
    ],
    "currencies": [
      1,
      4,
      0,
      1
    ],
    "profit": 0.007144969999999917,
    "ratio": 1.00714497
  },
  {
    "amounts": [
      1,
      1.366,
      1.35917,
      0.8929746900000001,
      1.00548950094
    ],
    "currencies": [
      1,
      4,
      0,
      2,
      1
    ],
    "profit": 0.005489500940000003,
    "ratio": 1.00548950094
  },
  {
    "amounts": [
      1,
      1.366,
      1.35917,
      0.8929746900000001,
      1.4412611496600003,
      1.0060002824626801
    ],
    "currencies": [
      1,
      4,
      0,
      2,
      3,
      1
    ],
    "profit": 0.00600028246268014,
    "ratio": 1.0060002824626801
  },
  {
    "amounts": [
      1,
      1.366,
      1.35917,
      1.4420793699999999,
      1.00657140026
    ],
    "currencies": [
      1,
      4,
      0,
      3,
      1
    ],
    "profit": 0.0065714002599999155,
    "ratio": 1.00657140026
  },
  {
    "amounts": [
      1,
      1.366,
      1.35917,
      1.4420793699999999,
      0.89264713003,
      1.00512066841378
    ],
    "currencies": [
      1,
      4,
      0,
      3,
      2,
      1
    ],
    "profit": 0.005120668413779894,
    "ratio": 1.00512066841378
  },
  {
    "amounts": [
      1,
      1.366,
      0.8879000000000001,
      1.3504959,
      1.0007174619
    ],
    "currencies": [
      1,
      4,
      2,
      0,
      1
    ],
    "profit": 0.0007174619000001048,
    "ratio": 1.0007174619
  },
  {
    "amounts": [
      1,
      1.366,
      0.8879000000000001,
      1.3504959,
      1.4328761499,
      1.0001475526302
    ],
    "currencies": [
      1,
      4,
      2,
      0,
      3,
      1
    ],
    "profit": 0.00014755263019994302,
    "ratio": 1.0001475526302
  },
  {
    "amounts": [
      1,
      1.366,
      0.8879000000000001,
      1.4330706000000004,
      1.0002832788000002
    ],
    "currencies": [
      1,
      4,
      2,
      3,
      1
    ],
    "profit": 0.00028327880000023065,
    "ratio": 1.0002832788000002
  },
  {
    "amounts": [
      1,
      1.366,
      0.8879000000000001,
      1.4330706000000004,
      1.3499525052000003,
      1.0003148063532001
    ],
    "currencies": [
      1,
      4,
      2,
      3,
      0,
      1
    ],
    "profit": 0.0003148063532001366,
    "ratio": 1.0003148063532001
  },
  {
    "amounts": [
      1,
      1.366,
      1.432934,
      1.0001879319999998
    ],
    "currencies": [
      1,
      4,
      3,
      1
    ],
    "profit": 0.00018793199999977972,
    "ratio": 1.0001879319999998
  },
  {
    "amounts": [
      1,
      1.366,
      1.432934,
      1.349823828,
      1.0002194565479998
    ],
    "currencies": [
      1,
      4,
      3,
      0,
      1
    ],
    "profit": 0.00021945654799981895,
    "ratio": 1.0002194565479998
  },
  {
    "amounts": [
      1,
      1.521,
      1.1270609999999999,
      1.0008301679999998
    ],
    "currencies": [
      2,
      0,
      1,
      2
    ],
    "profit": 0.000830167999999798,
    "ratio": 1.0008301679999998
  },
  {
    "amounts": [
      1,
      1.521,
      1.1270609999999999,
      1.6150784129999998,
      1.5391697275889997,
      1.00046032293285
    ],
    "currencies": [
      2,
      0,
      1,
      3,
      4,
      2
    ],
    "profit": 0.00046032293284992143,
    "ratio": 1.00046032293285
  },
  {
    "amounts": [
      1,
      1.521,
      1.1270609999999999,
      1.539565326,
      1.0007174619
    ],
    "currencies": [
      2,
      0,
      1,
      4,
      2
    ],
    "profit": 0.0007174619000001048,
    "ratio": 1.0007174619
  },
  {
    "amounts": [
      1,
      1.521,
      1.613781,
      1.126419138,
      1.000260194544
    ],
    "currencies": [
      2,
      0,
      3,
      1,
      2
    ],
    "profit": 0.00026019454399994757,
    "ratio": 1.000260194544
  },
  {
    "amounts": [
      1,
      1.521,
      1.613781,
      1.126419138,
      1.538688542508,
      1.0001475526302
    ],
    "currencies": [
      2,
      0,
      3,
      1,
      4,
      2
    ],
    "profit": 0.00014755263019994302,
    "ratio": 1.0001475526302
  },
  {
    "amounts": [
      1,
      1.126,
      1.6135579999999998,
      1.5377207739999998,
      1.53003217013,
      1.00523113577541
    ],
    "currencies": [
      2,
      1,
      3,
      4,
      0,
      2
    ],
    "profit": 0.005231135775410012,
    "ratio": 1.00523113577541
  },
  {
    "amounts": [
      1,
      1.126,
      1.538116,
      1.53042542,
      1.00548950094
    ],
    "currencies": [
      2,
      1,
      4,
      0,
      2
    ],
    "profit": 0.005489500940000003,
    "ratio": 1.00548950094
  },
  {
    "amounts": [
      1,
      1.126,
      1.538116,
      1.53042542,
      1.62378137062,
      1.00512066841378
    ],
    "currencies": [
      2,
      1,
      4,
      0,
      3,
      2
    ],
    "profit": 0.005120668413779894,
    "ratio": 1.00512066841378
  },
  {
    "amounts": [
      1,
      1.614,
      1.520388,
      1.126607508,
      1.000427467104
    ],
    "currencies": [
      2,
      3,
      0,
      1,
      2
    ],
    "profit": 0.000427467104000101,
    "ratio": 1.000427467104
  },
  {
    "amounts": [
      1,
      1.614,
      1.520388,
      1.126607508,
      1.538945855928,
      1.0003148063532001
    ],
    "currencies": [
      2,
      3,
      0,
      1,
      4,
      2
    ],
    "profit": 0.0003148063532001366,
    "ratio": 1.0003148063532001
  },
  {
    "amounts": [
      1,
      1.614,
      1.126572,
      1.0003959359999999
    ],
    "currencies": [
      2,
      3,
      1,
      2
    ],
    "profit": 0.0003959359999998746,
    "ratio": 1.0003959359999999
  },
  {
    "amounts": [
      1,
      1.614,
      1.126572,
      1.538897352,
      1.0002832788
    ],
    "currencies": [
      2,
      3,
      1,
      4,
      2
    ],
    "profit": 0.0002832788000000086,
    "ratio": 1.0002832788
  },
  {
    "amounts": [
      1,
      1.614,
      1.126572,
      1.538897352,
      1.53120286524,
      1.0060002824626801
    ],
    "currencies": [
      2,
      3,
      1,
      4,
      0,
      2
    ],
    "profit": 0.00600028246268014,
    "ratio": 1.0060002824626801
  },
  {
    "amounts": [
      1,
      1.614,
      1.5381420000000001,
      1.53045129,
      1.00550649753
    ],
    "currencies": [
      2,
      3,
      4,
      0,
      2
    ],
    "profit": 0.0055064975300000985,
    "ratio": 1.00550649753
  },
  {
    "amounts": [
      1,
      1.614,
      1.5381420000000001,
      1.53045129,
      1.13406440589,
      1.00704919243032
    ],
    "currencies": [
      2,
      3,
      4,
      0,
      1,
      2
    ],
    "profit": 0.007049192430319984,
    "ratio": 1.00704919243032
  },
  {
    "amounts": [
      1,
      1.538,
      1.53031,
      1.00541367
    ],
    "currencies": [
      2,
      4,
      0,
      2
    ],
    "profit": 0.005413670000000037,
    "ratio": 1.00541367
  },
  {
    "amounts": [
      1,
      1.538,
      1.53031,
      1.13395971,
      1.0069562224800002
    ],
    "currencies": [
      2,
      4,
      0,
      1,
      2
    ],
    "profit": 0.006956222480000163,
    "ratio": 1.0069562224800002
  },
  {
    "amounts": [
      1,
      1.538,
      1.53031,
      1.13395971,
      1.6249642644300002,
      1.0058528796821702
    ],
    "currencies": [
      2,
      4,
      0,
      1,
      3,
      2
    ],
    "profit": 0.005852879682170187,
    "ratio": 1.0058528796821702
  },
  {
    "amounts": [
      1,
      1.538,
      1.53031,
      1.62365891,
      1.00504486529
    ],
    "currencies": [
      2,
      4,
      0,
      3,
      2
    ],
    "profit": 0.0050448652899999225,
    "ratio": 1.00504486529
  },
  {
    "amounts": [
      1,
      1.538,
      1.53031,
      1.62365891,
      1.13331391918,
      1.00638276023184
    ],
    "currencies": [
      2,
      4,
      0,
      3,
      1,
      2
    ],
    "profit": 0.0063827602318400345,
    "ratio": 1.00638276023184
  },
  {
    "amounts": [
      1,
      1.538,
      1.613362,
      1.5197870039999999,
      1.1261621699639999,
      1.000032006928032
    ],
    "currencies": [
      2,
      4,
      3,
      0,
      1,
      2
    ],
    "profit": 0.000032006928031957926,
    "ratio": 1.000032006928032
  },
  {
    "amounts": [
      1,
      1.538,
      1.613362,
      1.126126676,
      1.000000488288
    ],
    "currencies": [
      2,
      4,
      3,
      1,
      2
    ],
    "profit": 4.882880000334211e-7,
    "ratio": 1.000000488288
  },
  {
    "amounts": [
      1,
      0.942,
      0.6980219999999999,
      1.000265526
    ],
    "currencies": [
      3,
      0,
      1,
      3
    ],
    "profit": 0.0002655259999999604,
    "ratio": 1.000265526
  },
  {
    "amounts": [
      1,
      0.942,
      0.6980219999999999,
      0.619843536,
      1.000427467104
    ],
    "currencies": [
      3,
      0,
      1,
      2,
      3
    ],
    "profit": 0.000427467104000101,
    "ratio": 1.000427467104
  },
  {
    "amounts": [
      1,
      0.942,
      0.6980219999999999,
      0.619843536,
      0.953319358368,
      1.000032006928032
    ],
    "currencies": [
      3,
      0,
      1,
      2,
      4,
      3
    ],
    "profit": 0.000032006928031957926,
    "ratio": 1.000032006928032
  },
  {
    "amounts": [
      1,
      0.942,
      0.6980219999999999,
      0.9534980519999999,
      1.0002194565479998
    ],
    "currencies": [
      3,
      0,
      1,
      4,
      3
    ],
    "profit": 0.00021945654799981895,
    "ratio": 1.0002194565479998
  },
  {
    "amounts": [
      1,
      0.942,
      0.6980219999999999,
      0.9534980519999999,
      0.6197737338,
      1.0003148063532001
    ],
    "currencies": [
      3,
      0,
      1,
      4,
      2,
      3
    ],
    "profit": 0.0003148063532001366,
    "ratio": 1.0003148063532001
  },
  {
    "amounts": [
      1,
      0.698,
      1.000234
    ],
    "currencies": [
      3,
      1,
      3
    ],
    "profit": 0.0002340000000000675,
    "ratio": 1.000234
  },
  {
    "amounts": [
      1,
      0.698,
      0.6198239999999999,
      1.0003959359999999
    ],
    "currencies": [
      3,
      1,
      2,
      3
    ],
    "profit": 0.0003959359999998746,
    "ratio": 1.0003959359999999
  },
  {
    "amounts": [
      1,
      0.698,
      0.6198239999999999,
      0.9427523039999999,
      1.0002601945439997
    ],
    "currencies": [
      3,
      1,
      2,
      0,
      3
    ],
    "profit": 0.0002601945439997255,
    "ratio": 1.0002601945439997
  },
  {
    "amounts": [
      1,
      0.698,
      0.6198239999999999,
      0.9532893119999999,
      1.0000004882879998
    ],
    "currencies": [
      3,
      1,
      2,
      4,
      3
    ],
    "profit": 4.882879998113765e-7,
    "ratio": 1.0000004882879998
  },
  {
    "amounts": [
      1,
      0.698,
      0.6198239999999999,
      0.9532893119999999,
      0.9485228654399999,
      1.0063827602318398
    ],
    "currencies": [
      3,
      1,
      2,
      4,
      0,
      3
    ],
    "profit": 0.0063827602318398124,
    "ratio": 1.0063827602318398
  },
  {
    "amounts": [
      1,
      0.698,
      0.953468,
      1.000187932
    ],
    "currencies": [
      3,
      1,
      4,
      3
    ],
    "profit": 0.00018793200000000176,
    "ratio": 1.000187932
  },
  {
    "amounts": [
      1,
      0.698,
      0.953468,
      0.94870066,
      1.00657140026
    ],
    "currencies": [
      3,
      1,
      4,
      0,
      3
    ],
    "profit": 0.0065714002599999155,
    "ratio": 1.00657140026
  },
  {
    "amounts": [
      1,
      0.698,
      0.953468,
      0.94870066,
      0.62329633362,
      1.0060002824626801
    ],
    "currencies": [
      3,
      1,
      4,
      0,
      2,
      3
    ],
    "profit": 0.00600028246268014,
    "ratio": 1.0060002824626801
  },
  {
    "amounts": [
      1,
      0.698,
      0.953468,
      0.6197542,
      1.0002832788
    ],
    "currencies": [
      3,
      1,
      4,
      2,
      3
    ],
    "profit": 0.0002832788000000086,
    "ratio": 1.0002832788
  },
  {
    "amounts": [
      1,
      0.698,
      0.953468,
      0.6197542,
      0.9426461382,
      1.0001475526302
    ],
    "currencies": [
      3,
      1,
      4,
      2,
      0,
      3
    ],
    "profit": 0.00014755263019994302,
    "ratio": 1.0001475526302
  },
  {
    "amounts": [
      1,
      0.619,
      0.6969939999999999,
      0.9520938039999999,
      0.9473333349799998,
      1.0051206684137797
    ],
    "currencies": [
      3,
      2,
      1,
      4,
      0,
      3
    ],
    "profit": 0.005120668413779672,
    "ratio": 1.0051206684137797
  },
  {
    "amounts": [
      1,
      0.619,
      0.952022,
      0.94726189,
      1.00504486529
    ],
    "currencies": [
      3,
      2,
      4,
      0,
      3
    ],
    "profit": 0.0050448652899999225,
    "ratio": 1.00504486529
  },
  {
    "amounts": [
      1,
      0.619,
      0.952022,
      0.94726189,
      0.70192106049,
      1.00585287968217
    ],
    "currencies": [
      3,
      2,
      4,
      0,
      1,
      3
    ],
    "profit": 0.005852879682169965,
    "ratio": 1.00585287968217
  },
  {
    "amounts": [
      1,
      0.953,
      0.9482349999999999,
      1.0060773349999999
    ],
    "currencies": [
      3,
      4,
      0,
      3
    ],
    "profit": 0.0060773349999998505,
    "ratio": 1.0060773349999999
  },
  {
    "amounts": [
      1,
      0.953,
      0.9482349999999999,
      0.702642135,
      1.006886179455
    ],
    "currencies": [
      3,
      4,
      0,
      1,
      3
    ],
    "profit": 0.006886179454999919,
    "ratio": 1.006886179455
  },
  {
    "amounts": [
      1,
      0.953,
      0.9482349999999999,
      0.702642135,
      0.62394621588,
      1.00704919243032
    ],
    "currencies": [
      3,
      4,
      0,
      1,
      2,
      3
    ],
    "profit": 0.007049192430319984,
    "ratio": 1.00704919243032
  },
  {
    "amounts": [
      1,
      0.953,
      0.9482349999999999,
      0.622990395,
      1.00550649753
    ],
    "currencies": [
      3,
      4,
      0,
      2,
      3
    ],
    "profit": 0.0055064975300000985,
    "ratio": 1.00550649753
  },
  {
    "amounts": [
      1,
      0.953,
      0.9482349999999999,
      0.622990395,
      0.7014871847699999,
      1.00523113577541
    ],
    "currencies": [
      3,
      4,
      0,
      2,
      1,
      3
    ],
    "profit": 0.005231135775410012,
    "ratio": 1.00523113577541
  },
  {
    "amounts": [
      1,
      0.953,
      0.61945,
      0.9421834499999998,
      0.6981579364499999,
      1.00046032293285
    ],
    "currencies": [
      3,
      4,
      2,
      0,
      1,
      3
    ],
    "profit": 0.00046032293284992143,
    "ratio": 1.00046032293285
  },
  {
    "amounts": [
      1,
      0.995,
      0.737295,
      1.0071449700000001
    ],
    "currencies": [
      4,
      0,
      1,
      4
    ],
    "profit": 0.007144970000000139,
    "ratio": 1.0071449700000001
  },
  {
    "amounts": [
      1,
      0.995,
      0.737295,
      0.65471796,
      1.0069562224800002
    ],
    "currencies": [
      4,
      0,
      1,
      2,
      4
    ],
    "profit": 0.006956222480000163,
    "ratio": 1.0069562224800002
  },
  {
    "amounts": [
      1,
      0.995,
      0.737295,
      0.65471796,
      1.05671478744,
      1.00704919243032
    ],
    "currencies": [
      4,
      0,
      1,
      2,
      3,
      4
    ],
    "profit": 0.007049192430319984,
    "ratio": 1.00704919243032
  },
  {
    "amounts": [
      1,
      0.995,
      0.737295,
      1.056543735,
      1.006886179455
    ],
    "currencies": [
      4,
      0,
      1,
      3,
      4
    ],
    "profit": 0.006886179454999919,
    "ratio": 1.006886179455
  },
  {
    "amounts": [
      1,
      0.995,
      0.737295,
      1.056543735,
      0.6540005719649999,
      1.00585287968217
    ],
    "currencies": [
      4,
      0,
      1,
      3,
      2,
      4
    ],
    "profit": 0.005852879682169965,
    "ratio": 1.00585287968217
  },
  {
    "amounts": [
      1,
      0.995,
      0.653715,
      1.00541367
    ],
    "currencies": [
      4,
      0,
      2,
      4
    ],
    "profit": 0.005413670000000037,
    "ratio": 1.00541367
  },
  {
    "amounts": [
      1,
      0.995,
      0.653715,
      0.7360830899999999,
      1.00548950094
    ],
    "currencies": [
      4,
      0,
      2,
      1,
      4
    ],
    "profit": 0.005489500940000003,
    "ratio": 1.00548950094
  },
  {
    "amounts": [
      1,
      0.995,
      0.653715,
      0.7360830899999999,
      1.05480706797,
      1.0052311357754098
    ],
    "currencies": [
      4,
      0,
      2,
      1,
      3,
      4
    ],
    "profit": 0.00523113577540979,
    "ratio": 1.0052311357754098
  },
  {
    "amounts": [
      1,
      0.995,
      0.653715,
      1.0550960100000002,
      1.00550649753
    ],
    "currencies": [
      4,
      0,
      2,
      3,
      4
    ],
    "profit": 0.0055064975300000985,
    "ratio": 1.00550649753
  },
  {
    "amounts": [
      1,
      0.995,
      0.653715,
      1.0550960100000002,
      0.73645701498,
      1.0060002824626801
    ],
    "currencies": [
      4,
      0,
      2,
      3,
      1,
      4
    ],
    "profit": 0.00600028246268014,
    "ratio": 1.0060002824626801
  },
  {
    "amounts": [
      1,
      0.995,
      1.0556949999999998,
      1.0060773349999999
    ],
    "currencies": [
      4,
      0,
      3,
      4
    ],
    "profit": 0.0060773349999998505,
    "ratio": 1.0060773349999999
  },
  {
    "amounts": [
      1,
      0.995,
      1.0556949999999998,
      0.7368751099999998,
      1.00657140026
    ],
    "currencies": [
      4,
      0,
      3,
      1,
      4
    ],
    "profit": 0.0065714002599999155,
    "ratio": 1.00657140026
  },
  {
    "amounts": [
      1,
      0.995,
      1.0556949999999998,
      0.7368751099999998,
      0.6543450976799998,
      1.0063827602318398
    ],
    "currencies": [
      4,
      0,
      3,
      1,
      2,
      4
    ],
    "profit": 0.0063827602318398124,
    "ratio": 1.0063827602318398
  },
  {
    "amounts": [
      1,
      0.995,
      1.0556949999999998,
      0.6534752049999999,
      1.00504486529
    ],
    "currencies": [
      4,
      0,
      3,
      2,
      4
    ],
    "profit": 0.0050448652899999225,
    "ratio": 1.00504486529
  },
  {
    "amounts": [
      1,
      0.995,
      1.0556949999999998,
      0.6534752049999999,
      0.7358130808299999,
      1.00512066841378
    ],
    "currencies": [
      4,
      0,
      3,
      2,
      1,
      4
    ],
    "profit": 0.005120668413779894,
    "ratio": 1.00512066841378
  },
  {
    "amounts": [
      1,
      0.65,
      0.98865,
      0.73258965,
      1.0007174619
    ],
    "currencies": [
      4,
      2,
      0,
      1,
      4
    ],
    "profit": 0.0007174619000001048,
    "ratio": 1.0007174619
  },
  {
    "amounts": [
      1,
      0.65,
      0.98865,
      0.73258965,
      1.04980096845,
      1.00046032293285
    ],
    "currencies": [
      4,
      2,
      0,
      1,
      3,
      4
    ],
    "profit": 0.00046032293284992143,
    "ratio": 1.00046032293285
  },
  {
    "amounts": [
      1,
      0.65,
      0.98865,
      1.04895765,
      0.7321724396999999,
      1.0001475526302
    ],
    "currencies": [
      4,
      2,
      0,
      3,
      1,
      4
    ],
    "profit": 0.00014755263019994302,
    "ratio": 1.0001475526302
  },
  {
    "amounts": [
      1,
      0.65,
      1.0491000000000001,
      0.9882522000000001,
      0.7322948802000001,
      1.0003148063532001
    ],
    "currencies": [
      4,
      2,
      3,
      0,
      1,
      4
    ],
    "profit": 0.0003148063532001366,
    "ratio": 1.0003148063532001
  },
  {
    "amounts": [
      1,
      0.65,
      1.0491000000000001,
      0.7322718,
      1.0002832788
    ],
    "currencies": [
      4,
      2,
      3,
      1,
      4
    ],
    "profit": 0.0002832788000000086,
    "ratio": 1.0002832788
  },
  {
    "amounts": [
      1,
      1.049,
      0.9881579999999999,
      0.7322250779999999,
      1.000219456548
    ],
    "currencies": [
      4,
      3,
      0,
      1,
      4
    ],
    "profit": 0.000219456548000041,
    "ratio": 1.000219456548
  },
  {
    "amounts": [
      1,
      1.049,
      0.9881579999999999,
      0.7322250779999999,
      0.650215869264,
      1.000032006928032
    ],
    "currencies": [
      4,
      3,
      0,
      1,
      2,
      4
    ],
    "profit": 0.000032006928031957926,
    "ratio": 1.000032006928032
  },
  {
    "amounts": [
      1,
      1.049,
      0.7322019999999999,
      1.000187932
    ],
    "currencies": [
      4,
      3,
      1,
      4
    ],
    "profit": 0.00018793200000000176,
    "ratio": 1.000187932
  },
  {
    "amounts": [
      1,
      1.049,
      0.7322019999999999,
      0.6501953759999999,
      1.0000004882879998
    ],
    "currencies": [
      4,
      3,
      1,
      2,
      4
    ],
    "profit": 4.882879998113765e-7,
    "ratio": 1.0000004882879998
  }
]

Install & Use

Use

curl -X POST -d '[[1, 0.741,  0.657,  1.061,  1.005], [1.349,1, 0.888,  1.433,  1.366], [1.521,  1.126,  1, 1.614, 1.538], [0.942, 0.698, 0.619, 1,0.953], [0.995,  0.732,0.650,1.049,1]]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/Aluxian/ArbitrageDetection/0.1.0