Autosnipe
  • GETTING STARTED
    • 🔥 Welcome
    • ⚙️ Wallet Setup
      • Login & Wallet Connect
      • Autosnipe Wallet
      • Deposit
      • Withdrawal
      • FAQs
    • 🔗 Useful Links
  • Platform
    • 🔥Burn & Sell Rugged Tokens
    • 🧭 Platform Navigation
    • ✨ Trader Lens - Wallet Analyzer
    • 💡 Notification Alerts
    • ⚡️ Scam & Rug Detection
    • 💊 Filters
  • Buy & Sell
    • ⚙️ Slippage & Gas Settings
    • 🟥 Buys - Market & Limit Orders
    • 🟩 Sells - Market & Limit Orders
    • 🟨 Holdings & Trade History
    • 💰 Fees
  • Advanced Trading
    • Advanced Trading Features
    • 🤖 AI Sniper - Trade Automation
      • Intro
      • Set-up & Activation
      • Profit & Loss / Trading History
      • FAQ & Troubleshooting:
    • ⚡️ Copy Trading
      • Set Up & Activate Copy Trading
      • Trading History
      • Profit & Loss
      • Frequently Asked Questions
    • 💻Autosnipe API Trading
      • Autosnipe Node SDK
      • Autosnipe Rest APIS
        • 📖Authentication
          • 🔶Get Pairs
          • 🟢Buy Token
          • 🔴Sell Token
          • 🟩Limit Order Buy Token
          • 🟥Limit Order Sell Token
          • 🟨List Limit Order
          • ❌Cancel Limit Order
          • ⚖️Users Holdings
  • Referral & Partner Growth
    • 💸 Referral Program
    • 🤝 KOL & Partner Growth
  • Miscellaneous
    • Others
      • 💰 Fees
      • ❓ FAQ
      • 🔔 Terms of Use
      • ⚠️ Privacy Policy
      • ✅ Transparency Disclosure
Powered by GitBook
On this page
  1. Advanced Trading
  2. Autosnipe API Trading
  3. Autosnipe Rest APIS
  4. Authentication

List Limit Order

List all limit orders placed so far

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

Request Method Get

Request Headers

Name
Value

x-autosnipe-apikey

<YOUR_API_KEY>

x-autosnipe-signature

generated Signature

Content-Type

'application/json'

Request Params

Name
Type
Description

page

number

0 - default

type

number

0 - buy, 1 - sell, default - both

Response Params

{
    "status": 1,
    "message": "Success!",
    "data": {
        "resSelLimitOrders": [
            {
                "id": <limitOrderId>,
                "user_id": <user_id>,
                "token_id": <token_id>,
                "token_address": "<token_address>",
                "chain_id": 0,
                "amount": "<amount>",
                "type": <>,
                "rate": "<rate>",
                "jito_tip": "<>",
                "status": 0,
                "create_date": "2024-07-26T01:48:06.000Z",
                "is_pump": <>,
                "expiry_date": <>,
            }
        ],
        "isNext": false
    }
}
  • status - (api status, 1 on success, 0 on failure)

  • id - limitOrderId

  • type - 0 (Buy Limit Order) 1- (Sell limit order)

  • isNext - false (no more limit orders), true - (call with page+1 for more limit orders)

let body = {page}
callAuthAPI("/limit/orders", body, "GET")
// Example in curl

#!/bin/bash

API_KEY="<YOUR_API_KEY>"
API_SECRET="<YOUR_API_SECRET>"
BASE_URL="https://api.autosnipe.ai/sniper-api"
END_POINT="/limit/orders"

# Replace these variables with actual values
page="0"

TIME_STAMP_NONCE=$(date +%s000)
URL="$BASE_URL$END_POINT"

# Prepare body
BODY=$(cat <<EOF
{
  "url": "$URL",
  "timeStamp_nonce": "$TIME_STAMP_NONCE",
  "page": "0"
}
EOF
)


# Create the payload
CONTENT=$(cat <<EOF
{
  "url": "$URL",
  "timeStamp_nonce": "$TIME_STAMP_NONCE",
  "body": "$BODY"
}
EOF
)

PAYLOAD=$(echo -n "$CONTENT" | base64)

# Create the signature
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha512 -hmac "$API_SECRET" | sed 's/^.* //')

# Make the curl request
curl -X POST "$URL" \
     -H "x-autosnipe-apikey: $API_KEY" \
     -H "x-autosnipe-signature: $SIGNATURE" \
     -H "Content-Type: application/json" \
     -d "$BODY"
PreviousLimit Order Sell TokenNextCancel Limit Order

Last updated 10 months ago

💻
📖
🟨