curl --request GET \
--url https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"asset": "<string>",
"asset_name": "<string>",
"in_discovery_zone": true,
"quantity": "<string>",
"direction": 10,
"start": "2023-11-07T05:31:56Z",
"period": "<string>",
"enabled": true
}Get Recurring Buy
Recurring buys that automatically purchase an asset on a schedule — this is the DCA / scheduled trade flow. For instant one-shot trades, use the swaps endpoints instead.
Set a fixed AUD amount, an asset, and a cadence, and the platform will place the buy at each scheduled time. Changing the cadence resets the next run to the current moment so the new schedule starts immediately, unless a specific start time is provided.
curl --request GET \
--url https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.digitalsurge.com.au/api/private/broker/schedules/{id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"asset": "<string>",
"asset_name": "<string>",
"in_discovery_zone": true,
"quantity": "<string>",
"direction": 10,
"start": "2023-11-07T05:31:56Z",
"period": "<string>",
"enabled": true
}Authorizations
Personal API key, created in the Digital Surge app under Account Settings → API Keys. Send it with every request as Authorization: Bearer <your-api-key>.
Path Parameters
A unique integer value identifying this Recurring Trade Schedule.
Response
A recurring buy (DCA) schedule: automatically buys a set amount of an asset at a regular interval.
Amount to trade at each recurrence. When direction = BUY_ASSET, this is the AUD amount to spend buying the asset; when direction = SELL_ASSET, this is the quantity of the asset (in its native units) to sell.
Direction of the recurring trade against AUD. BUY_ASSET = spend AUD to buy this schedule's asset on each fire; SELL_ASSET = sell this schedule's asset for AUD on each fire.
10- buy asset20- sell asset
10, 20 0 <= x <= 32767