{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"How To Use Sniperoo API","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"how-to-use-sniperoo-api","__idx":0},"children":["How To Use Sniperoo API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This guide provides step-by-step instructions for common operations with the Sniperoo API."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":1},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Before you begin, you'll need:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Sniperoo account"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["An API token (generate one in the \"API Access\" section of ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://sniperoo.app/dashboard/api-access"},"children":["Sniperoo platform"]},")"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["At least one Solana wallet with SOL"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authentication","__idx":2},"children":["Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All API requests require the following header:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Authorization: Bearer YOUR_API_TOKEN\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YOUR_API_TOKEN"]}," with your actual API token."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"auto-sell-strategies","__idx":3},"children":["Auto-Sell Strategies"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"simple-auto-sell","__idx":4},"children":["Simple Auto-Sell"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"enabled\": true,\n  \"strategy\": {\n    \"strategyName\": \"simple\",\n    \"profitPercentage\": 50,\n    \"stopLossPercentage\": 20\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"grid-strategy-with-static-stop-loss","__idx":5},"children":["Grid Strategy with Static Stop-Loss"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"enabled\": true,\n  \"strategy\": {\n    \"strategyName\": \"grid\",\n    \"stopLossType\": \"static\",\n    \"stopLossPercentage\": 15,\n    \"profitTargets\": [\n      {\n        \"multiplier\": 1.5,\n        \"sellPercentage\": 25\n      },\n      {\n        \"multiplier\": 2.0,\n        \"sellPercentage\": 50\n      },\n      {\n        \"multiplier\": 3.0,\n        \"sellPercentage\": 100\n      }\n    ]\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"grid-strategy-with-trailing-stop-loss","__idx":6},"children":["Grid Strategy with Trailing Stop-Loss"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"enabled\": true,\n  \"strategy\": {\n    \"strategyName\": \"grid\",\n    \"stopLossType\": \"trailing\",\n    \"stopLossPercentage\": 10,\n    \"profitTargets\": [\n      {\n        \"multiplier\": 1.5,\n        \"sellPercentage\": 25,\n        \"trailingStopLossAfter\": 20\n      },\n      {\n        \"multiplier\": 2.0,\n        \"sellPercentage\": 50,\n        \"trailingStopLossAfter\": 30\n      },\n      {\n        \"multiplier\": 3.0,\n        \"sellPercentage\": 100,\n        \"trailingStopLossAfter\": 40\n      }\n    ]\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"error-handling","__idx":7},"children":["Error Handling"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The API returns standard HTTP status codes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2xx"]}," - Success"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["4xx"]}," - Client errors (invalid input, authentication issues)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5xx"]}," - Server errors"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Error responses include descriptive messages to help troubleshoot issues."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"rate-limiting","__idx":8},"children":["Rate Limiting"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The API implements rate limiting to ensure fair usage. If you exceed the limits, you'll receive a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429 Too Many Requests"]}," response. Implement exponential backoff in your applications to handle these cases gracefully."]}]},"headings":[{"value":"How To Use Sniperoo API","id":"how-to-use-sniperoo-api","depth":1},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Authentication","id":"authentication","depth":2},{"value":"Auto-Sell Strategies","id":"auto-sell-strategies","depth":2},{"value":"Simple Auto-Sell","id":"simple-auto-sell","depth":3},{"value":"Grid Strategy with Static Stop-Loss","id":"grid-strategy-with-static-stop-loss","depth":3},{"value":"Grid Strategy with Trailing Stop-Loss","id":"grid-strategy-with-trailing-stop-loss","depth":3},{"value":"Error Handling","id":"error-handling","depth":2},{"value":"Rate Limiting","id":"rate-limiting","depth":2}],"frontmatter":{"seo":{"title":"How To Use Sniperoo API"}},"lastModified":"2026-01-18T19:18:00.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/how-to","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}