# Examples

## BSC - Snipe new tokens at listing

#### 1/ settings.json

```
[
    {
    "WALLET_ADDRESS": "0x265Cb06dc562C97Acc8e51EBE3AA0275BF0c4D3D",
    "WALLET_PRIVATEKEY": "03fba7c182540c2d1846a33329a2b162c45b80e36702eb82844145922adbf13",
    "USECUSTOMNODE": "true",
    "CUSTOMNODE": "https://bsc-dataseed4.ninicoin.io/",
    "EXCHANGE": "Pancakeswap"
		"EXCHANGEVERSION": "2"  
		"PREAPPROVE": "true",
		"UNLIMITEDSLIPPAGE": "false"  
    }
]
```

In this example, we choose to use same wallet for holding LIMIT tokens and trading.\
You can also choose to use 2 different wallets : up to you :innocent:&#x20;

In this example, we chose to use a custom BSC node : [https://bsc-dataseed4.ninicoin.io/\
](https://bsc-dataseed4.ninicoin.io/)To use custom node, you need to enter its http address, with the "/" at the end of the address.\\

#### 2/ tokens.json

To snipe new token, you need:

* contract address
* listing price

{% hint style="success" %}
if you don't know listing price, put BUYPRICEINBASE = 1000 for instance, so as the bot to buy at any price
{% endhint %}

Let's say you want to snipe KPAD listing. If you enter this in your tokens.json :

```
[
  {
  "SYMBOL": "KPAD",
  "ADDRESS": "0xcfefa64b0ddd611b125157c41cd3827f2e8e8615",
  
  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "enter here your custom Base pair symbol if USECUSTOMBASEPAIR =True",
  "BASEADDRESS": "enter here your custom Base pair address if USECUSTOMBASEPAIR =True",

  "LIQUIDITYINNATIVETOKEN": "True",

  "BUYAMOUNTINBASE": "1",
  "BUYPRICEINBASE": "0.001",
  
  "SELLAMOUNTINTOKENS": "ALL",
  "SELLPRICEINBASE": "0.005",
  
  "MAXTOKENS": "100",
  "MOONBAG": "20",
  "SLIPPAGE": "49",
  "HASFEES": "false",
  
  "GAS": "20",
  "BOOSTPERCENT": "50", 
  "GASLIMIT": "1000000", 
  
  "LIQUIDITYCHECK": "true",
  "LIQUIDITYAMOUNT": "10"
  }
]
```

it will :

* buy 1 BNB of KPAD if the price is < 0.001 BNB / token
* sell all the tokens you bought when the price reached 0.005 BNB / token
* with 49% slippage&#x20;
* with Gas high enough to make quick transaction

{% hint style="success" %}
"LIQUIDITYINNATIVETOKEN" is set to "True" because liquidity is provided in BNB for this token (BNB is the "native" token here)
{% endhint %}

## BSC - Buy/sell TECH with USDC on MATIC&#x20;

Here is an example of token where the liquidity has been added in USDC : <https://polygon.poocoin.app/tokens/0x6286a9e6f7e745a6d884561d88f94542d6715698>

In this case, you should:\
\- use **LIQUIDITYINNATIVETOKEN = false**\
\- use **USDC custom base pair**

Here is how to do:

#### 1/ settings.json

Quickswap exchange is used for MATIC sniping.

```
[
    {
    "WALLET_ADDRESS": "0x0975AbABe9Da8934f14D1CC108f4644e349f0866",
    "WALLET_PRIVATEKEY": "14fgt8dflzuwb7keic74sffnfje456sjkoelfnf3245sjfocj76",
    "USECUSTOMNODE": "false",
    "CUSTOMNODE": "put the address of your own node here if you want and make USECUSTOMNODE = TRUE",
    "EXCHANGE": "quickswap"
		"EXCHANGEVERSION": "2"  
		"PREAPPROVE": "true",
		"UNLIMITEDSLIPPAGE": "false"  
    }
]
```

In this example, we choose to use 2 different wallets : \
\- one wallet for holding LIMIT tokens \
\- another wallet for trading\
&#x20;

#### &#x20;2/ tokens.json&#xD;

```
[
  {
  "ENABLED" : "True",

  "SYMBOL": "TECH",
  "ADDRESS": "0x6286a9e6f7e745a6d884561d88f94542d6715698",
  
  "USECUSTOMBASEPAIR": "true",
  "BASESYMBOL": "USDC",
  "BASEADDRESS": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
  
  "LIQUIDITYINNATIVETOKEN": "false",

  "BUYAMOUNTINBASE": "100",
  "BUYPRICEINBASE": "0.07",
  
  "SELLAMOUNTINTOKENS": "ALL",
  "SELLPRICEINBASE": "0.13",
  
  "MAXTOKENS": "1",
  "MOONBAG": "0",
  "SLIPPAGE": "5",
  "HASFEES": "false",
  
  "GAS": "20",
  "BOOSTPERCENT": "10",
  "GASLIMIT": "1000000",
  
  "LIQUIDITYCHECK": "false",
  "LIQUIDITYAMOUNT": "10"  
  }
]
```

This will create a "ping-pong" bot, who always :

* buy the equivalent of 100$ of TECH
* sell all the tokens at the prices you set, like this :

{% hint style="info" %}
Please note that LIQUIDITYCHECK is set to "false" here, to make the bot faster
{% endhint %}

## BSC - Buy/sell KPAD with BNB&#x20;

#### 1/ settings.json

```
(check previous examples)
```

#### &#x20;2/ tokens.json&#xD;

```
[
  {
  "ENABLED" : "True",

  "SYMBOL": "KPAD",
  "ADDRESS": "0xcfefa64b0ddd611b125157c41cd3827f2e8e8615",

  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "enter here your custom Base pair symbol if USECUSTOMBASEPAIR =True",
  "BASEADDRESS": "enter here your custom Base pair address if USECUSTOMBASEPAIR =True",

  "LIQUIDITYINNATIVETOKEN": "true",

  "BUYAMOUNTINBASE": "1",
  "BUYPRICEINBASE": "0.006",
  
  "SELLAMOUNTINTOKENS": "ALL",
  "SELLPRICEINBASE": "0.009",
  
  "MAXTOKENS": "1",
  "MOONBAG": "0",
  "SLIPPAGE": "5",
  "HASFEES": "false",
  
  "GAS": "5",
  "BOOSTPERCENT": "10",
  "GASLIMIT": "300000",
  
  "LIQUIDITYCHECK": "false",
  "LIQUIDITYAMOUNT": "10"
  }
]

```

{% hint style="info" %}
Please note that LIQUIDITYCHECK is set to "false" here, to make the bot faster
{% endhint %}

This will create a "ping-pong" bot, who always :

* buy the equivalent of 1 BNB of KPAD
* sell all the tokens at the prices you set

{% hint style="info" %}
To know the price of the token, go to Pancake :

![](broken-reference)
{% endhint %}

## ETH - Only sell AAVE with ETH  (no buy)

#### 1/ settings.json

```
"EXCHANGE": "Uniswap"

(+ all the rest, of course)
```

#### &#x20;2/ tokens.json&#xD;

```
[
  {
  "ENABLED" : "True",

  "SYMBOL": "AAVE",
  "ADDRESS": "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",

  "USECUSTOMBASEPAIR": "false",
  "BASESYMBOL": "enter here your custom Base pair symbol if USECUSTOMBASEPAIR =True",
  "BASEADDRESS": "enter here your custom Base pair address if USECUSTOMBASEPAIR =True",

  "LIQUIDITYINNATIVETOKEN": "true",

  "BUYAMOUNTINBASE": "0.1",
  "BUYPRICEINBASE": "0",
  
  "SELLAMOUNTINTOKENS": "ALL",
  "SELLPRICEINBASE": "0.45",
  
  "MAXTOKENS": "1",
  "MOONBAG": "0",
  "SLIPPAGE": "5",
  "HASFEES": "false",
  
  "GAS": "BOOST",
  "BOOSTPERCENT": "10",
  "GASLIMIT": "300000",
  
  "LIQUIDITYCHECK": "false",
  "LIQUIDITYAMOUNT": "10"
  }
]
```

In this example, **we don't want the bot to buy**, so we put "BUYPRICEINBASE" = 0 , so as the bot to never buy.

If you wanted the opposite (**the bot to never sell**), simply put SELLPRICEINBASE = 999999 for instance.

{% hint style="info" %}
To know the price of the token, go to Uniswap:

![](broken-reference)
{% endhint %}

## Use the bot with several tokens

If you want the bot to work with several tokens at the same time, simply put 2 tokens paragraphs, separated with a "," &#x20;

```
[
  {
  (first token)
  },
   {
  (second token)
  }
]
```

Such as:

## ... more examples to come
