🟩Limit Order Buy Token

Place Buy order at a particular rate

Limit order APIs work only for Raydium pairs

API https://api.autosnipe.ai/sniper-api/limit/buy

Request Method Post

Request Headers

Name
Value

x-autosnipe-apikey

<YOUR_API_KEY>

x-autosnipe-signature

generated Signature

Content-Type

'application/json'

Request Params

Name
Type
Description

amount*

number

amount in SOL to be bought

token_address*

string

token address to buy

chain_id*

number

0 - Solana

platform*

number

0 - Raydium

rate*

number

Rate at which order is to be placed

expiry_date

epoch

Order will expire if not placed by this time

jito_tip

number

tip for faster confirmation in SOL

Response Params

{
    "status": 1,
    "message": "Limit Order placed Successfully",
    "data": <limitOrderId>
}
let body = {amount, jito_tip, rate, expiry_date, token_address, platform, chain_id}
callAuthAPI("/limit/buy", body, "POST")

Last updated