v51

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0175184292.5 KB
Experimental endpoints

List account recent orders (V2, last 24 hours only)

A lightweight endpoint that returns a list of orders executed in the last 24 hours in the specified account using the V2 order format. This endpoint is realtime and can be used to quickly check if account state has recently changed due to an execution, or check status of recently placed orders. Differs from /orders in that it is realtime, and only checks the last 24 hours as opposed to the last 30 days. By default only returns executed orders, but that can be changed by setting only_executed to false. Because of the cost of realtime requests, each call to this endpoint incurs an additional charge. You can find the exact cost for your API key on the Customer Dashboard billing page

get/accounts/{accountId}/recentOrders/v2

Path parameters

accountIdstring uuid required

Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.

Example:917c8734-8470-4a3e-a18f-57c3f2ee6631

Query parameters

userIdstring required

SnapTrade User ID. This is chosen by the API partner and can be any string that is a) unique to the user, and b) immutable for the user. It is recommended to NOT use email addresses for this property because they are usually not immutable.

Example:snaptrade-user-123
userSecretstring required

SnapTrade User Secret. This is a randomly generated string and should be stored securely. If compromised, please rotate it via the rotate user secret endpoint.

Example:adf2aa34-8219-40f7-a6b3-60156985cc61
only_executedboolean

Defaults to true. Indicates if request should fetch only executed orders. Set to false to retrieve non executed orders as well

Response

OK

Example response

{
  "orders": [
    {
      "brokerage_order_id": "66a033fa-da74-4fcf-b527-feefdec9257e",
      "brokerage_group_order_id": "1234567890",
      "order_role": "TRIGGER",
      "order_type": "MARKET",
      "time_in_force": "DAY",
      "time_placed": "2024-07-30T22:51:49.746270Z",
      "time_executed": "2024-08-05T00:05:57.409000Z",
      "quote_currency": "USD",
      "execution_price": "12.34",
      "limit_price": "12.34",
      "stop_price": "12.50",
      "trailing_stop": {
        "amount": "0.60"
      },
      "legs": [
        {
          "instrument": {
            "symbol": "AAPL",
            "description": "Apple Inc.",
            "asset_type": "EQUITY",
            "exchange_mic_code": "XNAS",
            "figi_code": "BBG000B9XRY4"
          },
          "execution_price": "12.34",
          "total_quantity": "10",
          "canceled_quantity": "1",
          "filled_quantity": "9"
        }
      ]
    }
  ]
}