Creating A Bot - User Guide

Youtube version of the user guide

This is a user guide to assist users of Bonfida-Bots launching their bot on our platform. In order to proceed you must meet the prerequisites below.

Prerequisites

  • A SPL compatible wallet. (Sollet.io - recommended)

  • Solana (SOL) in your wallet.

  • TradingView premium account

Creating Your Custom Pool

1. Go to the create pool page, and create your own custom pool.

2. Select the following settings:

Setting #1: Tick the Use an external signal provider and select TradingView Alerts

Setting #2: Select the markets on which you want to trade, You can select any Serum market - e.g FIDA/USDC. Note that you can select several markets for a single pool.

⚠️You cannot add a market to the pool after its creation.

3. Select how many assets you want to deposit in the pool at the beginning. You can deposit more at anytime. However, the initial amount deposited will determine the initial value of a pool token. For instance, if you decide to deposit first 100 USDC + 10 FIDA, 1 Pool Token = 100 USDC + 10 FIDA.

4. Click on Create and approve the transactions in the wallet pop up.

5. Once the transactions have been confirmed you will received a Pool Seed and a TradingView Auth Token save the TradingView Auth Token in a safe place.

Setting Up TradingView Alerts

  1. Go to TradingView on the chart page with your favourite indicator on.

    • For this example, we will use MACD.

  2. Click on Alert

3. Select your indicator in the condition row of the form. In our case, it's MACD, so the strategy is to go long when the histogram is crossing up above 0

4. Select Open-ended if you want the strategy to run with no limit in time.

⚠️ Side needs to be either buy or sell. This field is case sensitive, it means that buy is valid but BUY or Buy are not.

5. In the Alert Actions tick the box Webhook URL and enter https://tradingview-cranker.bonfida.com/alerts

6. Give a name to the alert, e.g Bonfida Bot

7. In the message you will to enter the following parameters: marketName, auth, poolSeed, side, size

It needs to be done with the following format:

{
"poolSeed": "poolSeed",
"size": "size of your order",
"side": "side",
"auth": "tradingViewAuthToken",
"marketName": "marketName"
}

For instance a valid message is:

{
"poolSeed": "DhCEYSbw2uHdDBt2D7Xaxdy2LUUSKk11Kvpd1WJFEwGy",
"size": "10",
"side": "buy",
"auth": "3d7NfKp7ddFWXcuPd1BrJFkb2VEmo4EnNa9Yocus3Pf4vRy4ufvtKvuA2bmT595cgiaizMyZA1Ma1zAdQwH68oiT",
"marketName": "FIDA/USDC"
}

💡 Need help with the code above? You can use our TradingView Message Generator

⚠️ Size needs to be a number between 0 and 100. It's the percentage of the pool's funds that will be used to execute the order. If a buy order is sent to a pool containing 1,000 USDC with a size of 10 it will use 10% of 1,000 i.e 100 USDC

⚠️ MarketName needs to be a valid Serum market on which your custom pool can trade. This field is case sensitive. Below are some example of valid and invalid market name 👇 Valid: "BTC/USDC", "BTC/USDT", "ETH/USDC" Not valid: "BTC/USD", "btc/usdc", "BTCUSDC", "BTC-USDC"