11.5 Find Arbitrage Opportunities

Alteryx Essentials Workshop 3 - Cryptocurrency Arbitrage
5 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€42.65
List Price:  €59.72
You save:  €17.06
£36.96
List Price:  £51.75
You save:  £14.78
CA$68.68
List Price:  CA$96.16
You save:  CA$27.47
A$76.24
List Price:  A$106.74
You save:  A$30.50
S$64.15
List Price:  S$89.82
You save:  S$25.66
HK$389.76
List Price:  HK$545.70
You save:  HK$155.93
CHF 39.96
List Price:  CHF 55.94
You save:  CHF 15.98
NOK kr500.71
List Price:  NOK kr701.04
You save:  NOK kr200.32
DKK kr318.41
List Price:  DKK kr445.79
You save:  DKK kr127.38
NZ$84.63
List Price:  NZ$118.48
You save:  NZ$33.85
د.إ183.58
List Price:  د.إ257.03
You save:  د.إ73.45
৳6,064.19
List Price:  ৳8,490.36
You save:  ৳2,426.16
₹4,410.03
List Price:  ₹6,174.40
You save:  ₹1,764.36
RM211.20
List Price:  RM295.70
You save:  RM84.50
₦76,552.18
List Price:  ₦107,179.18
You save:  ₦30,627
₨14,147.62
List Price:  ₨19,807.80
You save:  ₨5,660.18
฿1,614.75
List Price:  ฿2,260.78
You save:  ฿646.03
₺2,055.19
List Price:  ₺2,877.44
You save:  ₺822.24
B$272.34
List Price:  B$381.30
You save:  B$108.96
R878.87
List Price:  R1,230.49
You save:  R351.62
Лв83.35
List Price:  Лв116.70
You save:  Лв33.35
₩69,650.61
List Price:  ₩97,516.43
You save:  ₩27,865.81
₪167.46
List Price:  ₪234.46
You save:  ₪66.99
₱2,859.07
List Price:  ₱4,002.93
You save:  ₱1,143.85
¥7,355.05
List Price:  ¥10,297.66
You save:  ¥2,942.61
MX$930.26
List Price:  MX$1,302.44
You save:  MX$372.18
QR181.75
List Price:  QR254.47
You save:  QR72.71
P671.37
List Price:  P939.97
You save:  P268.60
KSh6,458.70
List Price:  KSh9,042.70
You save:  KSh2,584
E£2,428.95
List Price:  E£3,400.73
You save:  E£971.77
ብር7,102.98
List Price:  ብር9,944.74
You save:  ብር2,841.76
Kz45,588.63
List Price:  Kz63,827.73
You save:  Kz18,239.10
CLP$48,533.98
List Price:  CLP$67,951.45
You save:  CLP$19,417.47
CN¥356.46
List Price:  CN¥499.08
You save:  CN¥142.61
RD$3,144.19
List Price:  RD$4,402.12
You save:  RD$1,257.92
DA6,485.41
List Price:  DA9,080.10
You save:  DA2,594.68
FJ$112.54
List Price:  FJ$157.56
You save:  FJ$45.02
Q382.24
List Price:  Q535.16
You save:  Q152.92
GY$10,428.74
List Price:  GY$14,601.08
You save:  GY$4,172.33
ISK kr6,116.77
List Price:  ISK kr8,563.97
You save:  ISK kr2,447.20
DH449.55
List Price:  DH629.41
You save:  DH179.85
L831.30
List Price:  L1,163.88
You save:  L332.58
ден2,626.53
List Price:  ден3,677.36
You save:  ден1,050.82
MOP$400.41
List Price:  MOP$560.60
You save:  MOP$160.19
N$885.21
List Price:  N$1,239.36
You save:  N$354.15
C$1,837.33
List Price:  C$2,572.41
You save:  C$735.08
रु7,038.37
List Price:  रु9,854.29
You save:  रु2,815.91
S/176.50
List Price:  S/247.11
You save:  S/70.61
K210.42
List Price:  K294.61
You save:  K84.18
SAR187.59
List Price:  SAR262.64
You save:  SAR75.05
ZK1,176.14
List Price:  ZK1,646.70
You save:  ZK470.55
L216.34
List Price:  L302.89
You save:  L86.55
Kč1,042.36
List Price:  Kč1,459.38
You save:  Kč417.02
Ft16,858.10
List Price:  Ft23,602.69
You save:  Ft6,744.58
SEK kr470.33
List Price:  SEK kr658.51
You save:  SEK kr188.17
ARS$67,335.96
List Price:  ARS$94,275.73
You save:  ARS$26,939.77
Bs344.59
List Price:  Bs482.45
You save:  Bs137.86
COP$200,483.87
List Price:  COP$280,693.47
You save:  COP$80,209.59
₡25,201.39
List Price:  ₡35,283.96
You save:  ₡10,082.57
L1,309.43
List Price:  L1,833.31
You save:  L523.87
₲360,540.19
List Price:  ₲504,785.11
You save:  ₲144,244.92
$U1,999.90
List Price:  $U2,800.03
You save:  $U800.12
zł181.51
List Price:  zł254.13
You save:  zł72.62
Already have an account? Log In

Transcript

In the previous video, we identified the Best Buy and Sell prices. And now we're going to combine all that information together to determine if there are any good arbitrage opportunities. Let's start by combining our data by dragging in a join multiple tool from the join tab will join the two unique anchors into the join multiple and will join by record positions since our sell and buy prices are filtered and sorted in the same way, so our coins will always be in the same position. Therefore joined by record position can be used in this instance. Let's update the field names in the configuration pane. So for input one which contains our immediate buy price information, we'll rename input one exchange to buy from or buy from this exchange.

And then for Jason value stream This will be our immediate buyout, or immediate buy price input to exchange or call this sell to or sell to this exchange. And then for JSON value string here, this will be immediate sell at. Since we don't need these fields anymore JSON name, input to name and input two, and JSON name and input one. We can untick those. And then lastly, we'll update our data types for JSON value strings are double as they're going to be numbers and not text. And then we'll add a browse tool to the end of our workflow.

And if we run our workflow, we can see that our buy and sell data have now been combined in the same row. Now we're going to finish This off by writing a formula to determine the price difference between a buy and sell as a percentage, and also a textfield to advise on the best course of action. So let's drag in a formula tool from the preparation tab. And we'll create a new output column called return. And this is going to be our immediate sell at minus how immediate buyout. We're hoping to see a positive number from this calculation.

Now that we have the price difference, we want to see it as a percentage. So we'll add another output column and call this one return percentage. We'll add a round function and fill in the parameters here. So x will be our return divided by our immediate to buy multiplied by 100. And we want to round it off to a multiplier of one, which will give us a whole number. This is giving us an error here because we've got the string data type, so we'll change this to double.

Change this to double. And we'll add a browse tool to our workflow and run it and then we have our return details. So there was a problem with the recording here. But what I want you to do is create a new output column with the formula tool and name it action will then insert an IF function into By clicking on the fx icon and locating the IF function, so our C condition is going to be return percentage is more than or equal to nine. And if that's true, then we want a text to output identified. Otherwise, we'll return no job.

Let's run our workflow and see if any arbitrage opportunities have been identified. So it looks like there were no arbitrage opportunities as all exchanges have their coins similarly priced. There you have it, you now have a working product that identifies price discrepancies between cryptocurrency exchanges. I know the results may look a little underwhelming, but you can research other coins to find out arbitrage opportunities. Congratulations on making it this far. I know this workshop contains a lot of new concepts and jargon which can be pretty confronting, but I hope you learned a lot from it and can apply it to your work.

So as I highlighted at the start of this video, it's most likely that you won't make any money from this. And at the time of recording this video, the market isn't doing very well. And this is purely for learning purposes only. In the next video, we're going to convert our workflow into a macro and dynamically control the arbitrage percentage instead of a static 9%.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.