galacticcouncil / amsterdot-bounties-2022

1 stars 0 forks source link

Arbitrage Bot #4

Open dexterslabor opened 2 years ago

dexterslabor commented 2 years ago

Title

Arbitrage Bot

Short description

Create an arbitrage bot that speculates on the price differences between 2 or more markets. The solution must be able to trade between Basilisk and any other Kusama parachain. There is a bonus bounty for CEX integration and another bonus for utilising the node's mempool.

Bounty

1st place: Main challenge: $10,000 (arbitrage bot) Bonus 1: $ 1000 (CEX integration) Bonus 2: $1000 (mempool)

2nd place: $2,500

The bounties will be paid out in $HDX and $BSX (which may be frozen until the official launch or until the LBP has been conducted).

All submissions are eligible for a $150,000 shared prize pool offered by the Polkadot treasury, link to more info here soon.

Contact person

Istvan [stove-labs]#0153 maht0rz [stove-labs]#5916 on Discord

Requirements

  1. Automated arbitrage trading algorithm
  2. Basic reporting capabilities on trade profits
  3. Error handling / transaction status
  4. Documentation for using the arbitrage bot
  5. (optional) Deployment instructions

An arbitrage bot takes advantage of the difference in asset prices in the market and trades for a profit. These are two arbitrage trading strategies:

  1. A simple form of arbitrage (aka spatial arbitrage) is to trade a cryptocurrency pair at the same time on two exchanges. A trader would hold assets on both exchanges and buy crypto at a lower price on one and sell immediately at a higher price on the other.
  2. A more advanced approach (triangular arbitrage) is to leverage price differences across 3 pairs of cryptocurrencies. For example, you discover that trading BSX for aUSD, converting aUSD to KSM and selling KSM back to BSX earns you a profit on BSX.

For the bounty to be complete, you need to demonstrate an automated discovery of price discrepancies and arbitrage trading between Basilisk DEX and at least Acala or any DEX on Moonbeam. There are two additional bonuses to be earned that are independent from each other. Bonus 1: Integrate with one CEX that supports polkadot chain based assets. Bonus 2: Read the mempool of the blockchain nodes and utilise it in the trading algorithm.

All of the code must be open source licensed under https://spdx.org/licenses/Apache-2.0.html or MIT

Please note that there is a highly relevant workshop related to this bounty. It will be published after the AmsterDOT event which is taking place in April 2022. The comprehensive workshop focuses on interacting with polkadot based chains. Specifically, executing trades on the Basilisk AMM, to identify emitted events and building effective strategies to process data and to precompute parameters for trading.

Submissions

Submissions are open until June 20 12 CET.

You can submit your solution by opening a PR in this repo. Please include:

The winners will be selected and notified in June.

Don't forget to submit your solution also via DoraHacks. This will allow you to participate in the distribution of the $150,000 prize pool provided by Polkadot treasury.

nigeta1 commented 1 year ago

标题

套利机器人

简短的介绍

创建一个套利机器人,用于推测 2 个或多个市场之间的价格差异。该解决方案必须能够在 Basilisk 和任何其他 Kusama 平行链之间进行交易。CEX 集成有奖金,使用节点的内存池也有奖金。

赏金

第一名: 主要挑战:10,000 美元(套利机器人) 奖金 1:1000 美元(CEX 集成) 奖金 2:1000 美元(内存池)

第二名: 2,500 美元

赏金将以 $HDX 和 $BSX 的形式支付(在正式发布或 LBP 完成之前可能会被冻结)。

所有提交的内容都有资格获得由 Polkadot 财政部提供的 150,000 美元的共享奖池,很快就会在此处链接到更多信息。

联系人

Istvan [stove-labs]#0153 maht0rz [stove-labs]#5916 在不和谐

要求

  1. 自动套利交易算法
  2. 贸易利润的基本报告能力
  3. 错误处理/交易状态
  4. 使用套利机器人的文档
  5. (可选)部署说明

套利机器人利用市场上资产价格的差异进行交易以获取利润。这是两种套利交易策略:

  1. 一种简单的套利形式(又名空间套利)是在两个交易所_同时交易一个加密货币对。_交易员会在两个交易所持有资产,并在一个交易所以较低的价格购买加密货币,并_立即_在另一个交易所以较高的价格出售。
  2. 一种更高级的方法(三角套利)是利用 3 对加密货币之间的价格差异。例如,您发现用 BSX 交易 aUSD、将 aUSD 转换为 KSM 并将 KSM 卖回 BSX 可以让您在 BSX 上获利。

为了完成赏金,您需要证明自动发现 Basilisk DEX 和至少 Acala 或 Moonbeam 上的任何 DEX 之间的价格差异和套利交易。有两个额外的奖金是相互独立的。 奖励 1:与一个支持基于 polkadot 链的资产的 CEX 集成。 奖励 2:读取区块链节点的内存池并将其用于交易算法。

所有代码都必须在https://spdx.org/licenses/Apache-2.0.html或 MIT下获得开源许可

请注意,有一个与此赏金相关的高度相关的研讨会。它将在 2022 年 4 月举行的 AmsterDOT 活动之后发布。综合研讨会的重点是与基于 polkadot 的链进行交互。具体来说,在 Basilisk AMM 上执行交易,以识别发出的事件并建立有效的策略来处理数据并预先计算交易参数。

意见书

提交截止至 6 月 20 日欧洲中部时间 12 点。

您可以通过在此存储库中打开 PR 来提交您的解决方案。请包括:

  • 您团队的名称、规模和联系方式
  • 支付的 BSX / HDX 地址
  • 您提交的描述
  • 链接到已开发解决方案的(公共)存储库
  • 一个 5 分钟的视频解释您提交的内容

获奖者将于 6 月选出并通知。

不要忘记也通过 DoraHacks 提交您的解决方案。这将使您能够参与 Polkadot 金库提供的 150,000 美元奖池的分配。

Are Arbitrage Bots Now Available?