Arbitrage

Algorithmia Platform License · Internet Access

Run an Example

[
  {
    "combination": [
      1,
      3
    ],
    "profit": 1.000234
  },
  {
    "combination": [
      3,
      1
    ],
    "profit": 1.000234
  },
  {
    "combination": [
      0,
      1,
      2
    ],
    "profit": 1.000830168
  },
  {
    "combination": [
      0,
      1,
      3
    ],
    "profit": 1.000265526
  },
  {
    "combination": [
      0,
      1,
      4
    ],
    "profit": 1.0071449700000001
  },
  {
    "combination": [
      0,
      2,
      4
    ],
    "profit": 1.00541367
  },
  {
    "combination": [
      0,
      3,
      4
    ],
    "profit": 1.0060773349999999
  },
  {
    "combination": [
      1,
      2,
      0
    ],
    "profit": 1.0008301679999998
  },
  {
    "combination": [
      1,
      2,
      3
    ],
    "profit": 1.0003959359999999
  },
  {
    "combination": [
      1,
      3,
      0
    ],
    "profit": 1.000265526
  },
  {
    "combination": [
      1,
      4,
      0
    ],
    "profit": 1.00714497
  },
  {
    "combination": [
      1,
      4,
      3
    ],
    "profit": 1.0001879319999998
  },
  {
    "combination": [
      2,
      0,
      1
    ],
    "profit": 1.0008301679999998
  },
  {
    "combination": [
      2,
      3,
      1
    ],
    "profit": 1.0003959359999999
  },
  {
    "combination": [
      2,
      4,
      0
    ],
    "profit": 1.00541367
  },
  {
    "combination": [
      3,
      0,
      1
    ],
    "profit": 1.000265526
  },
  {
    "combination": [
      3,
      1,
      2
    ],
    "profit": 1.0003959359999999
  },
  {
    "combination": [
      3,
      1,
      4
    ],
    "profit": 1.000187932
  },
  {
    "combination": [
      3,
      4,
      0
    ],
    "profit": 1.0060773349999999
  },
  {
    "combination": [
      4,
      0,
      1
    ],
    "profit": 1.0071449700000001
  },
  {
    "combination": [
      4,
      0,
      2
    ],
    "profit": 1.00541367
  },
  {
    "combination": [
      4,
      0,
      3
    ],
    "profit": 1.0060773349999999
  },
  {
    "combination": [
      4,
      3,
      1
    ],
    "profit": 1.000187932
  },
  {
    "combination": [
      0,
      1,
      2,
      3
    ],
    "profit": 1.0004274671039999
  },
  {
    "combination": [
      0,
      1,
      2,
      4
    ],
    "profit": 1.0069562224800002
  },
  {
    "combination": [
      0,
      1,
      3,
      4
    ],
    "profit": 1.0068861794549997
  },
  {
    "combination": [
      0,
      1,
      4,
      2
    ],
    "profit": 1.0007174619000003
  },
  {
    "combination": [
      0,
      1,
      4,
      3
    ],
    "profit": 1.000219456548
  },
  {
    "combination": [
      0,
      2,
      1,
      4
    ],
    "profit": 1.00548950094
  },
  {
    "combination": [
      0,
      2,
      3,
      4
    ],
    "profit": 1.00550649753
  },
  {
    "combination": [
      0,
      3,
      1,
      2
    ],
    "profit": 1.000260194544
  },
  {
    "combination": [
      0,
      3,
      1,
      4
    ],
    "profit": 1.00657140026
  },
  {
    "combination": [
      0,
      3,
      2,
      4
    ],
    "profit": 1.0050448652900001
  },
  {
    "combination": [
      1,
      2,
      0,
      3
    ],
    "profit": 1.0002601945439997
  },
  {
    "combination": [
      1,
      2,
      3,
      0
    ],
    "profit": 1.0004274671039999
  },
  {
    "combination": [
      1,
      2,
      4,
      0
    ],
    "profit": 1.0069562224800002
  },
  {
    "combination": [
      1,
      2,
      4,
      3
    ],
    "profit": 1.000000488288
  },
  {
    "combination": [
      1,
      3,
      4,
      0
    ],
    "profit": 1.006886179455
  },
  {
    "combination": [
      1,
      4,
      0,
      2
    ],
    "profit": 1.00548950094
  },
  {
    "combination": [
      1,
      4,
      0,
      3
    ],
    "profit": 1.00657140026
  },
  {
    "combination": [
      1,
      4,
      2,
      0
    ],
    "profit": 1.0007174619
  },
  {
    "combination": [
      1,
      4,
      2,
      3
    ],
    "profit": 1.0002832788000002
  },
  {
    "combination": [
      1,
      4,
      3,
      0
    ],
    "profit": 1.0002194565479998
  },
  {
    "combination": [
      2,
      0,
      1,
      4
    ],
    "profit": 1.0007174619
  },
  {
    "combination": [
      2,
      0,
      3,
      1
    ],
    "profit": 1.000260194544
  },
  {
    "combination": [
      2,
      1,
      4,
      0
    ],
    "profit": 1.00548950094
  },
  {
    "combination": [
      2,
      3,
      0,
      1
    ],
    "profit": 1.000427467104
  },
  {
    "combination": [
      2,
      3,
      1,
      4
    ],
    "profit": 1.0002832788
  },
  {
    "combination": [
      2,
      3,
      4,
      0
    ],
    "profit": 1.00550649753
  },
  {
    "combination": [
      2,
      4,
      0,
      1
    ],
    "profit": 1.0069562224800002
  },
  {
    "combination": [
      2,
      4,
      0,
      3
    ],
    "profit": 1.00504486529
  },
  {
    "combination": [
      2,
      4,
      3,
      1
    ],
    "profit": 1.000000488288
  },
  {
    "combination": [
      3,
      0,
      1,
      2
    ],
    "profit": 1.000427467104
  },
  {
    "combination": [
      3,
      0,
      1,
      4
    ],
    "profit": 1.0002194565479998
  },
  {
    "combination": [
      3,
      1,
      2,
      0
    ],
    "profit": 1.0002601945439997
  },
  {
    "combination": [
      3,
      1,
      2,
      4
    ],
    "profit": 1.0000004882879998
  },
  {
    "combination": [
      3,
      1,
      4,
      0
    ],
    "profit": 1.00657140026
  },
  {
    "combination": [
      3,
      1,
      4,
      2
    ],
    "profit": 1.0002832788
  },
  {
    "combination": [
      3,
      2,
      4,
      0
    ],
    "profit": 1.00504486529
  },
  {
    "combination": [
      3,
      4,
      0,
      1
    ],
    "profit": 1.006886179455
  },
  {
    "combination": [
      3,
      4,
      0,
      2
    ],
    "profit": 1.00550649753
  },
  {
    "combination": [
      4,
      0,
      1,
      2
    ],
    "profit": 1.0069562224800002
  },
  {
    "combination": [
      4,
      0,
      1,
      3
    ],
    "profit": 1.006886179455
  },
  {
    "combination": [
      4,
      0,
      2,
      1
    ],
    "profit": 1.00548950094
  },
  {
    "combination": [
      4,
      0,
      2,
      3
    ],
    "profit": 1.00550649753
  },
  {
    "combination": [
      4,
      0,
      3,
      1
    ],
    "profit": 1.00657140026
  },
  {
    "combination": [
      4,
      0,
      3,
      2
    ],
    "profit": 1.00504486529
  },
  {
    "combination": [
      4,
      2,
      0,
      1
    ],
    "profit": 1.0007174619
  },
  {
    "combination": [
      4,
      2,
      3,
      1
    ],
    "profit": 1.0002832788
  },
  {
    "combination": [
      4,
      3,
      0,
      1
    ],
    "profit": 1.000219456548
  },
  {
    "combination": [
      4,
      3,
      1,
      2
    ],
    "profit": 1.0000004882879998
  },
  {
    "combination": [
      0,
      1,
      2,
      3,
      4
    ],
    "profit": 1.00704919243032
  },
  {
    "combination": [
      0,
      1,
      2,
      4,
      3
    ],
    "profit": 1.000032006928032
  },
  {
    "combination": [
      0,
      1,
      3,
      2,
      4
    ],
    "profit": 1.00585287968217
  },
  {
    "combination": [
      0,
      1,
      3,
      4,
      2
    ],
    "profit": 1.0004603229328497
  },
  {
    "combination": [
      0,
      1,
      4,
      2,
      3
    ],
    "profit": 1.0003148063532004
  },
  {
    "combination": [
      0,
      2,
      1,
      3,
      4
    ],
    "profit": 1.0052311357754098
  },
  {
    "combination": [
      0,
      2,
      3,
      1,
      4
    ],
    "profit": 1.0060002824626801
  },
  {
    "combination": [
      0,
      3,
      1,
      2,
      4
    ],
    "profit": 1.00638276023184
  },
  {
    "combination": [
      0,
      3,
      1,
      4,
      2
    ],
    "profit": 1.0001475526302
  },
  {
    "combination": [
      0,
      3,
      2,
      1,
      4
    ],
    "profit": 1.0051206684137801
  },
  {
    "combination": [
      1,
      2,
      3,
      4,
      0
    ],
    "profit": 1.00704919243032
  },
  {
    "combination": [
      1,
      2,
      4,
      0,
      3
    ],
    "profit": 1.00638276023184
  },
  {
    "combination": [
      1,
      2,
      4,
      3,
      0
    ],
    "profit": 1.000032006928032
  },
  {
    "combination": [
      1,
      3,
      2,
      4,
      0
    ],
    "profit": 1.00585287968217
  },
  {
    "combination": [
      1,
      3,
      4,
      0,
      2
    ],
    "profit": 1.00523113577541
  },
  {
    "combination": [
      1,
      3,
      4,
      2,
      0
    ],
    "profit": 1.00046032293285
  },
  {
    "combination": [
      1,
      4,
      0,
      2,
      3
    ],
    "profit": 1.0060002824626801
  },
  {
    "combination": [
      1,
      4,
      0,
      3,
      2
    ],
    "profit": 1.00512066841378
  },
  {
    "combination": [
      1,
      4,
      2,
      0,
      3
    ],
    "profit": 1.0001475526302
  },
  {
    "combination": [
      1,
      4,
      2,
      3,
      0
    ],
    "profit": 1.0003148063532001
  },
  {
    "combination": [
      2,
      0,
      1,
      3,
      4
    ],
    "profit": 1.00046032293285
  },
  {
    "combination": [
      2,
      0,
      3,
      1,
      4
    ],
    "profit": 1.0001475526302
  },
  {
    "combination": [
      2,
      1,
      3,
      4,
      0
    ],
    "profit": 1.00523113577541
  },
  {
    "combination": [
      2,
      1,
      4,
      0,
      3
    ],
    "profit": 1.00512066841378
  },
  {
    "combination": [
      2,
      3,
      0,
      1,
      4
    ],
    "profit": 1.0003148063532001
  },
  {
    "combination": [
      2,
      3,
      1,
      4,
      0
    ],
    "profit": 1.0060002824626801
  },
  {
    "combination": [
      2,
      3,
      4,
      0,
      1
    ],
    "profit": 1.00704919243032
  },
  {
    "combination": [
      2,
      4,
      0,
      1,
      3
    ],
    "profit": 1.0058528796821702
  },
  {
    "combination": [
      2,
      4,
      0,
      3,
      1
    ],
    "profit": 1.00638276023184
  },
  {
    "combination": [
      2,
      4,
      3,
      0,
      1
    ],
    "profit": 1.000032006928032
  },
  {
    "combination": [
      3,
      0,
      1,
      2,
      4
    ],
    "profit": 1.000032006928032
  },
  {
    "combination": [
      3,
      0,
      1,
      4,
      2
    ],
    "profit": 1.0003148063532001
  },
  {
    "combination": [
      3,
      1,
      2,
      4,
      0
    ],
    "profit": 1.0063827602318398
  },
  {
    "combination": [
      3,
      1,
      4,
      0,
      2
    ],
    "profit": 1.0060002824626801
  },
  {
    "combination": [
      3,
      1,
      4,
      2,
      0
    ],
    "profit": 1.0001475526302
  },
  {
    "combination": [
      3,
      2,
      1,
      4,
      0
    ],
    "profit": 1.0051206684137797
  },
  {
    "combination": [
      3,
      2,
      4,
      0,
      1
    ],
    "profit": 1.00585287968217
  },
  {
    "combination": [
      3,
      4,
      0,
      1,
      2
    ],
    "profit": 1.00704919243032
  },
  {
    "combination": [
      3,
      4,
      0,
      2,
      1
    ],
    "profit": 1.00523113577541
  },
  {
    "combination": [
      3,
      4,
      2,
      0,
      1
    ],
    "profit": 1.00046032293285
  },
  {
    "combination": [
      4,
      0,
      1,
      2,
      3
    ],
    "profit": 1.00704919243032
  },
  {
    "combination": [
      4,
      0,
      1,
      3,
      2
    ],
    "profit": 1.00585287968217
  },
  {
    "combination": [
      4,
      0,
      2,
      1,
      3
    ],
    "profit": 1.0052311357754098
  },
  {
    "combination": [
      4,
      0,
      2,
      3,
      1
    ],
    "profit": 1.0060002824626801
  },
  {
    "combination": [
      4,
      0,
      3,
      1,
      2
    ],
    "profit": 1.0063827602318398
  },
  {
    "combination": [
      4,
      0,
      3,
      2,
      1
    ],
    "profit": 1.00512066841378
  },
  {
    "combination": [
      4,
      2,
      0,
      1,
      3
    ],
    "profit": 1.00046032293285
  },
  {
    "combination": [
      4,
      2,
      0,
      3,
      1
    ],
    "profit": 1.0001475526302
  },
  {
    "combination": [
      4,
      2,
      3,
      0,
      1
    ],
    "profit": 1.0003148063532001
  },
  {
    "combination": [
      4,
      3,
      0,
      1,
      2
    ],
    "profit": 1.000032006928032
  }
]

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/yehancha/Arbitrage/0.1.0