KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#cli
#claude-code
#codex
#developer-tools
#react
#windows
funding-rate-arb
★ 55
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
funding-rate-alpha
:
Do funding rates predict returns? A survivorship-free test on 6.1M settlements across three venues.
funding_rate_strategy
:
資金費率期現套利策略與API交易系統
CryptoFundingArb
:
Scans funding rates between CEX and DEX and displays the best opportunities
fundingRate_Arb_Tool
:
No description available.
fund_python
:
use python script gather fund basic information and rate information
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
funding-rate-arb
?
Download (.md)
# Marginfi Mango x 01 Funding Rate Arb Bot ## ⚠ Warning THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## Prerequisites Fund your wallet with: - 0.2 SOL (for margin account + mango + 01 rent) - 10 USDC ## Setup ```sh cp .env.example.mainnet .env ``` Set the `WALLET=` the path of your solana wallet. Setup node dependencies ```sh yarn ``` You can follow either the **Setup Script** or the **Cli Setup** ### Setup Script Create your marginfi account, fund it, and activate the trading protocols ```sh yarn setup ``` It is recommended you use a private RPC node, as public ones like to fail/serve stale data. **If at any step the setup script fails, you can continue manually with the CLI from the step that failed** ### Cli Setup Download the CLI ```sh yarn global add @mrgnlabs/marginfi-cli ``` Create your marginfi account ```sh mfi account create -k <wallet_path> ``` Fund your marginfi account ```sh mfi account deposit <account_address> 10 -k <wallet_path> ``` Activate and fund Mango ```sh mfi account mango activate <account_address> -k <wallet_path> mfi account mango deposit <account_address> -k <wallet_path> ``` Activate and fund 01 ```sh mfi account zo activate <account_address> -k <wallet_path> mfi account zo deposit <account_address> -k <wallet_path> ``` --- Set the `MARGINFI_ACCOUNT=<address>` to the just created address. Start the bot ```sh yarn start ``` ## Troubleshooting If anything goes wrong you can set `export DEBUG=*` and repeat the failing step and send us the log via Telegram ❤️. ## DISCLAIMER **Not financial advice**. This bot is written for educational purposes only.