Update Price Trigger
Price alerts that watch an asset and optionally place a trade when the price is hit.
Create an alert to be notified by email or SMS when an asset crosses a target price, and optionally have it place a market order automatically.
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 Price Trigger Rule.
Body
A price trigger: fires an alert — and optionally a buy or sell — when an asset crosses a target price.
1Price level to watch for
Direction of the auto-trade against AUD. BUY_ASSET = spend AUD to receive this rule's asset; SELL_ASSET = spend this rule's asset to receive AUD; null = alert only (no trade).
10- buy asset20- sell assetNone- alert only
10, 20 Quantity of the spend-side asset (in its native units) to trade when the trigger fires. Mutually exclusive with order_get_quantity.
Quantity of the receive-side asset (in its native units) to receive when the trigger fires. Mutually exclusive with order_quantity.
Set to mark all events as seen
Response
A price trigger: fires an alert — and optionally a buy or sell — when an asset crosses a target price.
Price level to watch for
1- above2- belowNone- auto-set
1, 2 Direction of the auto-trade against AUD. BUY_ASSET = spend AUD to receive this rule's asset; SELL_ASSET = spend this rule's asset to receive AUD; null = alert only (no trade).
10- buy asset20- sell assetNone- alert only
10, 20 Quantity of the spend-side asset (in its native units) to trade when the trigger fires. Mutually exclusive with order_get_quantity.
Quantity of the receive-side asset (in its native units) to receive when the trigger fires. Mutually exclusive with order_quantity.