# Get spot prices

## Goal

Request a spot price from executable streaming prices (ESP).

## Prerequisites

- Your REST API app.
- Integral API login with trading permission.
- Your organization provisioned with at least one provider who streams ESP spot prices.


## Steps


```mermaid
flowchart TD
  LOGIN(Step 1: Login) --> GETRATE(Step 2: Get spot prices) --> HANDLE(Step 3: Handle prices)
  click LOGIN "#step-1-login"
  click GETRATE "#step-2-get-spot-prices"
  click HANDLE "#step-3-handle-prices"
```

### Step 1: Login

Use the [Login and get token](/openapi/integral-api-reference/rest/authentication-api/login) endpoint.

See the related [Login](/developer-portal/tutorials/tutorialauth/) tutorial.

Your access token is in `SSO_TOKEN` of the response header. Your token is valid for limited time.

Pass the `SSO_TOKEN` cookie value with all of your subsequent API requests.

### Step 2: Get spot prices

Use the [Get spot rate by symbol](/openapi/integral-api-reference/rest/market-data/getspotrate) endpoint.

Use the `rateId` attribute of the JSON response in the next step.

### Step 3: Handle prices

Use the `rateId` attribute of the response when you place your order.