money-bill-trend-upTrade

Our Trade API endpoint allows you to execute trades with a single request.

We handle the creation of the transaction as well as sending it through multiple endpoints to ensure the fastest possible landing.

circle-exclamation

Endpoint

Since we are in BETA, this endpoint may change at any time.

POST
https://api.monitor.ws/api/trade

Payload

Your private key is not stored or logged. We will soon upgrade to an API key system.

{
    "mint": "solana.PublicKey",
    "private_key": "solana.PrivateKey",

    "amount": "string", // Float64 | % can be used for Sell: 100%
    "is_sol": bool, // True = amount is in SOL
    "slippage": float64, // 20 = 20% | 100 = 100%
    "fee": float64, // Priority Fee

    "type": "string", // buy or sell
    "pool": "string", // pumpfun_bonding / pumpfun_amm / raydium / auto

    "mev_protection": bool, // true or false | use false for fast landing
    "skip_preflight": bool, // true or false | true for fast landing 

    "custom_tip_address": "solana.Publickey",
    "custom_tip_percentage": float64 // 20 = 20% | 100 = 100%
}

mev_protection, skip_preflight, custom_tip_address, custom_tip_percentage are optional parameters. You don't need to add them to the payload.

circle-info

The response timeout is set to 15 seconds. After this time, an error will be returned.

Success message returned

Error returned

Last updated