Skip to main content
GET
/
dca
/
order
/
{address}
SDK
import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getDcaOrder('125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd');
curl --request GET \
--url https://data.solanatracker.io/dca/order/{address} \
--header 'x-api-key: <api-key>'
import requests

url = "https://data.solanatracker.io/dca/order/{address}"

headers = {"x-api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://data.solanatracker.io/dca/order/{address}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://data.solanatracker.io/dca/order/{address}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://data.solanatracker.io/dca/order/{address}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("x-api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://data.solanatracker.io/dca/order/{address}")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://data.solanatracker.io/dca/order/{address}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "program": "jupiter",
  "programId": "DCA265Vj8a9CEuX1eb1LWRnDT7uK6q1xMipnNyatn23M",
  "address": "125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd",
  "owner": "2FbbdMWfrfGpyyK4Wh76vyxbmDGcp3LxZNhwBwFpV5UK",
  "status": "active",
  "direction": "buying",
  "pair": "USDC → SOL",
  "input": {
    "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "symbol": "USDC",
    "name": "USD Coin",
    "decimals": 6,
    "image": "https://image.solanatracker.io/proxy?url=example",
    "uri": "https://example.com",
    "description": "",
    "twitter": null,
    "website": null,
    "hasFileMetaData": true,
    "priceUsd": 1
  },
  "output": {
    "mint": "So11111111111111111111111111111111111111112",
    "symbol": "SOL",
    "name": "Wrapped SOL",
    "decimals": 9,
    "image": "https://image.solanatracker.io/proxy?url=example-sol",
    "priceUsd": 142.5
  },
  "deposited": 1000,
  "depositedUsd": 1000,
  "used": 200,
  "usedUsd": 200,
  "remaining": 800,
  "remainingUsd": 800,
  "received": 5.2,
  "receivedUsd": 741,
  "perCycle": 50,
  "perCycleUsd": 50,
  "frequency": "1h",
  "progressPercent": 20,
  "volume": 5.2,
  "volumeUsd": 741,
  "createdAt": "2024-01-01T00:00:00.000Z",
  "nextCycleAt": "2024-01-02T00:00:00.000Z",
  "raw": {
    "deposited": "1000000000",
    "used": "200000000"
  }
}
{
"error": {
"code": "INVALID_ORDER",
"message": "Invalid order address"
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "DCA order not found"
}
}
{
"error": {
"code": "SERVER_ERROR",
"message": "Internal server error"
}
}

SDK Example

import { Client } from '@solana-tracker/data-api';

const client = new Client({ apiKey: 'YOUR_API_KEY' });

const data = await client.getDcaOrder('125PQmudTAXHUUGxtSra1xTzGu3NRCMbRU7i9cikEpwd');

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

address
string
required

Query Parameters

program
string
default:jupiter

DCA program to query. Aliases: dex, platform. Default: jupiter. Use GET /dca/programs for supported ids.

Response

Successful response

program
string
programId
string
address
string
owner
string
status
enum<string>
Available options:
active,
paused,
completed,
pending
direction
enum<string>
Available options:
buying,
selling,
mixed
pair
string
input
object
output
object
deposited
number
depositedUsd
number | null
used
number
usedUsd
number | null
remaining
number
remainingUsd
number | null
received
number
receivedUsd
number | null
perCycle
number
perCycleUsd
number | null
frequency
string
progressPercent
number
volume
number
volumeUsd
number | null
createdAt
string<date-time>
nextCycleAt
string<date-time> | null
raw
object

Raw on-chain amounts as strings