๐ป Developer Guide
Arbitoor Core is the unified SDK to trade across decentralized exchanges on NEAR. It can be used for trading bots and swap integrations in crypto wallets and third party dApps.
1. Install NPM package
2. Initialize SDK
3. Poll for pool and token state updates
Arbitoor follows a data provider pattern to separate fetching from calculations. inMemoryProvider
is used to fetch and cache pool and token data. Poll for updates every 10 seconds or so. Route generation will fail if cache is empty.
4. Generate routes
Returns an array of routes across different exchanges, ranked by output amount.
5. Generate transactions
6. Generate path
This returns a RouteLeg[]
object that can be used to display the route visually.
Source code
[Arbitoor core SDK](https://github.com/arbitoor/arbitoor-core)
[Arbitoor UI](https://github.com/arbitoor/arbitoor-ui)
Need more help?
Join the Arbitoor Discord for development related questions: https://discord.gg/yaQFbBs6Hg
Last updated