Skip to main content
GET
/
api
/
private
/
broker
/
price-triggers
/
List Price Triggers
curl --request GET \
  --url https://app.digitalsurge.com.au/api/private/broker/price-triggers/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 123,
  "results": [
    {
      "id": 123,
      "asset": "<string>",
      "asset_name": "<string>",
      "in_discovery_zone": true,
      "created": "2023-11-07T05:31:56Z",
      "price": "<string>",
      "paused": true,
      "last_trigger": "2023-11-07T05:31:56Z",
      "order_side": "<string>",
      "enabled": true,
      "notify_sms": true,
      "notify_email": true,
      "order_quantity": "<string>",
      "order_get_quantity": "<string>",
      "events": [
        {
          "fired": "2023-11-07T05:31:56Z",
          "price": "<string>",
          "trade": "<string>",
          "failure_reason": "<string>",
          "seen": true
        }
      ]
    }
  ],
  "next": "http://api.example.org/accounts/?page=4",
  "previous": "http://api.example.org/accounts/?page=2"
}

Authorizations

Authorization
string
header
required

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>.

Query Parameters

asset
string

Asset ID

direction
any | null

Order Direction

  • 10 - buy asset
  • 20 - sell asset
  • None - alert only
Available options:
10,
20,
null
enabled
boolean

Enabled

page
integer

A page number within the paginated result set.

page_size
integer

Number of results to return per page.

trade_set
boolean

Trading configured

trade_successful
boolean

Trade successful

Response

200 - application/json
count
integer
required
Example:

123

results
object[]
required
next
string<uri> | null
Example:

"http://api.example.org/accounts/?page=4"

previous
string<uri> | null
Example:

"http://api.example.org/accounts/?page=2"