Market

Stock quotes, charts, extended data, exchange lookup, market indices, crypto, market status, trending stocks, short interest, dividends, technicals, and stock scanners. Most endpoints require a contract code (SYMBOL_EXCHANGE format, e.g. AAPL_NASDAQ). Use the exchanges endpoint to look up available exchanges for a symbol.

Base URLhttps://api.apps.myallies.com/v1
GET/market/stocks/{code}/quoteGet real-time stock quoteexpand_less

Get real-time stock quote

API Key (X-Api-Key)

Retrieve a comprehensive real-time stock price quote including last price, bid/ask, open/close, high/low, 52-week range, change, and market session status.

Parameters

NameTypeDescription
code *
path
string
Contract code in SYMBOL_EXCHANGE format. Use GET /market/exchanges/{symbol} to find available exchanges.

Responses

200Real-time quote data
404Symbol not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/AAPL_NASDAQ/quote" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "lastPrice": 178.5,
    "bid": 178.45,
    "ask": 178.55,
    "open": 177.8,
    "close": 178.5,
    "previousClose": 176.2,
    "high": 179.2,
    "low": 177.15,
    "yearHigh": 199.62,
    "yearLow": 155.98,
    "change": 2.3,
    "changePercent": 1.306,
    "marketSession": "Regular",
    "isHalted": false,
    "lastUpdated": "2026-03-17T15:30:00Z"
  },
  "error": null,
  "meta": {
    "requestId": "req_y7z8a9",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/chartGet OHLCV chart dataexpand_less

Get OHLCV chart data

API Key (X-Api-Key)

Retrieve OHLCV (Open, High, Low, Close, Volume) chart data for a stock. Supports multiple time periods from 1-minute to monthly bars.

Parameters

NameTypeDescription
code *
path
string
Contract code in SYMBOL_EXCHANGE format. Use GET /market/exchanges/{symbol} to find available exchanges.
period
query
integer
Chart period: 1=1min, 2=5min, 3=15min, 4=1hr, 5=daily, 6=weekly, 7=monthly
Default: 5
extended
query
boolean
Include extended trading hours data
Default: false

Responses

200Chart data with OHLCV bars
400Invalid period value
404No chart data available
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/AAPL_NASDAQ/chart" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "period": 5,
    "close": 178.5,
    "floor": 155.98,
    "ceiling": 199.62,
    "bars": [
      {
        "open": 176.8,
        "high": 178.2,
        "low": 176.5,
        "close": 177.9,
        "volume": 45230000,
        "timestamp": 1742169600000
      },
      {
        "open": 177.9,
        "high": 179.2,
        "low": 177.15,
        "close": 178.5,
        "volume": 52100000,
        "timestamp": 1742256000000
      }
    ]
  },
  "error": null,
  "meta": {
    "requestId": "req_ch1rt2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/detailsGet contract detailsexpand_less

Get contract details

API Key (X-Api-Key)

Retrieve contract details for a contract including contract type (Stock, Future, Crypto), exchange, currency, whether options are available, and current price.

Parameters

NameTypeDescription
code *
path
string
Contract code in SYMBOL_EXCHANGE format. Use GET /market/exchanges/{symbol} to find available exchanges.

Responses

200Contract details
404Symbol not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/AAPL_NASDAQ/details" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "name": "Apple Inc.",
    "contractType": "Stock",
    "exchange": "NASDAQ",
    "currency": "USD",
    "hasOptions": true,
    "lastPrice": 178.5,
    "change": 2.3,
    "changePercent": 1.306
  },
  "error": null,
  "meta": {
    "requestId": "req_dt1l2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/statusGet market statusexpand_less

Get market status

API Key (X-Api-Key)

Get current US market hours and trading session status. Shows whether the market is open, in pre-market, after-hours, overnight, or closed, and the time until the next session.

Responses

200Current market session status
curl -X GET "https://api.apps.myallies.com/v1/market/status" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "currentSession": "Market",
    "nextSession": "After-Hours",
    "secondsToNextSession": 3600,
    "isWeekend": false,
    "isHoliday": false,
    "currentTimeEst": "3:00 PM",
    "serverTimeUtc": "2026-03-17T20:00:00Z",
    "nextSessionStartUtc": "2026-03-17T20:00:00Z"
  },
  "error": null,
  "meta": {
    "requestId": "req_ms1t2",
    "timestamp": "2026-03-17T20:00:00Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/exchanges/{symbol}Get available exchanges for a symbolexpand_less

Get available exchanges for a symbol

API Key (X-Api-Key)

Look up all available exchanges where a symbol is traded. Returns contract codes (SYMBOL_EXCHANGE) that are required by most other endpoints. This is the first step — find the exchange, then use the returned code for quotes, charts, options, etc.

Parameters

NameTypeDescription
symbol *
path
string
Stock ticker symbol (e.g., AAPL)

Responses

200Available exchanges for the symbol
404Symbol not found
curl -X GET "https://api.apps.myallies.com/v1/market/exchanges/AAPL" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "code": "AAPL_NASDAQ",
      "symbol": "AAPL",
      "exchange": "NASDAQ",
      "name": "Apple Inc.",
      "contractType": 1,
      "hasOptions": true
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_ex1c2",
    "timestamp": "2026-03-23T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/indicesGet market indicesexpand_less

Get market indices

API Key (X-Api-Key)

Retrieve major market indices (S&P 500, Dow Jones, Nasdaq, Russell 2000, etc.) with current prices and daily change.

Responses

200List of market indices with pricing
curl -X GET "https://api.apps.myallies.com/v1/market/indices" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "symbol": "ES",
      "name": "E-mini S&P 500",
      "exchange": "CME",
      "lastPrice": 5250.25,
      "change": 32.5,
      "changePercent": 0.62
    },
    {
      "symbol": "NQ",
      "name": "E-mini Nasdaq 100",
      "exchange": "CME",
      "lastPrice": 18420.75,
      "change": 145,
      "changePercent": 0.79
    },
    {
      "symbol": "YM",
      "name": "E-mini Dow Jones",
      "exchange": "CBOT",
      "lastPrice": 39150,
      "change": 180,
      "changePercent": 0.46
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_ix1d2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/cryptoGet cryptocurrency contractsexpand_less

Get cryptocurrency contracts

API Key (X-Api-Key)

Retrieve available cryptocurrency contracts with current prices and daily change.

Responses

200List of crypto contracts with pricing
curl -X GET "https://api.apps.myallies.com/v1/market/crypto" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "name": "Bitcoin",
      "exchange": "PAXOS",
      "lastPrice": 67500,
      "change": 1250,
      "changePercent": 1.88
    },
    {
      "symbol": "ETH",
      "name": "Ethereum",
      "exchange": "PAXOS",
      "lastPrice": 3450,
      "change": 85,
      "changePercent": 2.52
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_cr1p2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/scanner/typesGet scanner typesexpand_less

Get scanner types

API Key (X-Api-Key)

Retrieve the list of available stock scanner types (e.g., Top % Gainers, Top % Losers, Most Active). Use with the /market/scanner/scan endpoint.

Responses

200Available scanner types
curl -X GET "https://api.apps.myallies.com/v1/market/scanner/types" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "id": 1,
      "displayName": "Top % Gainers",
      "code": "TOP_PERC_GAIN"
    },
    {
      "id": 2,
      "displayName": "Top % Losers",
      "code": "TOP_PERC_LOSE"
    },
    {
      "id": 3,
      "displayName": "Most Active by Volume",
      "code": "MOST_ACTIVE"
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_st1y2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/scanner/filtersGet scanner filtersexpand_less

Get scanner filters

API Key (X-Api-Key)

Retrieve available filters that can be applied when running a stock scanner to narrow results by criteria like price range, market cap, volume, etc.

Responses

200Available scanner filters
curl -X GET "https://api.apps.myallies.com/v1/market/scanner/filters" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "id": 1,
      "displayName": "Price",
      "code": "priceAbove",
      "type": "DOUBLE",
      "groupName": "Price",
      "defaultValueMin": 5,
      "defaultValueMax": 1000
    },
    {
      "id": 2,
      "displayName": "Market Cap",
      "code": "marketCapAbove",
      "type": "DOUBLE",
      "groupName": "Fundamentals",
      "defaultValueMin": 1000000000,
      "defaultValueMax": null
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_sf1l2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
POST/market/scanner/scanRun stock scannerexpand_less

Run stock scanner

API Key (X-Api-Key)

Scan for stocks matching specific criteria. Provide a scanner type ID (from /market/scanner/types) and optional filters (from /market/scanner/filters) to find matching stocks.

Request Body

NameTypeDescription
scannerTypeId *integer
Scanner type ID (from /v1/market/scanner/types)
instrumentId integer
Instrument type (default: 1 = US Stocks)
locationId integer
Location (default: 1 = US)
custom boolean
Use custom scanner mode (default: false)
filters array
Array of filter objects with id, code, min, max

Responses

200Scanner results
400Invalid scanner type ID
curl -X POST "https://api.apps.myallies.com/v1/market/scanner/scan" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "scannerTypeId": 1,
  "filters": [
    {
      "id": 1,
      "code": "priceAbove",
      "min": 10,
      "max": 500
    }
  ]
}'
Response Example
{
  "success": true,
  "data": [
    {
      "symbol": "NVDA",
      "companyName": "NVIDIA Corp.",
      "exchange": "NASDAQ",
      "lastPrice": 890.5,
      "change": 45.2,
      "changePercent": 5.35,
      "volume": 82500000,
      "marketCap": 2200000000000
    },
    {
      "symbol": "SMCI",
      "companyName": "Super Micro Computer",
      "exchange": "NASDAQ",
      "lastPrice": 1025.3,
      "change": 52.1,
      "changePercent": 5.36,
      "volume": 15600000,
      "marketCap": 58000000000
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_sc1n2",
    "timestamp": "2026-03-17T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/extendedGet extended contract dataexpand_less

Get extended contract data

API Key (X-Api-Key)

Retrieve extended fundamental and technical data for a stock including volume, market cap, 52-week range, RSI, implied volatility, Greeks, short interest, dividends, and upcoming events.

Parameters

NameTypeDescription
code *
path
string
Contract code in SYMBOL_EXCHANGE format. Use GET /market/exchanges/{symbol} to find available exchanges.

Responses

200Extended contract data
404Symbol not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/AAPL_NASDAQ/extended" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "yearHigh": 199.62,
    "yearLow": 155.98,
    "marketCap": 2780000000000,
    "marketCapFormatted": "2.78T",
    "averageDailyVolume": 58200000,
    "averageDailyVolumeFormatted": "58.2M",
    "volume": 45230000,
    "volumeFormatted": "45.23M",
    "beta": 1.24,
    "impliedVolatility": "28.5%",
    "rsi14": 55.3,
    "rsi5": 62.1,
    "rsiStatus": "Neutral",
    "theta": -0.045,
    "gamma": 0.012,
    "vega": 0.18,
    "shortable": true,
    "shortableShares": "12.5M",
    "feeRate": "0.25%",
    "dividendAmount": 0.96,
    "dividendYieldPercent": 0.54,
    "dividendsTTM": 3.84,
    "exDividendDate": "2026-02-07",
    "upcomingEvent": "Earnings",
    "upcomingEventDate": "2026-04-24",
    "upcomingEarnings": "Q2 2026 - AMC",
    "updatedOn": "2026-03-23T15:30:00Z"
  },
  "error": null,
  "meta": {
    "requestId": "req_ex1t2",
    "timestamp": "2026-03-23T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/tradeableGet all tradeable contractsexpand_less

Get all tradeable contracts

API Key (X-Api-Key)

Retrieve the full list of active tradeable contracts (stocks, ETFs) available on the platform. Each entry includes the contract code (SYMBOL_EXCHANGE) needed by other endpoints. Useful for building symbol lists, autocomplete, and validating codes.

Responses

200List of all tradeable contracts
curl -X GET "https://api.apps.myallies.com/v1/market/tradeable" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": [
    {
      "code": "AAPL_NASDAQ",
      "symbol": "AAPL",
      "companyName": "Apple Inc.",
      "exchange": "NASDAQ",
      "contractType": 1,
      "hasOptions": true
    },
    {
      "code": "MSFT_NASDAQ",
      "symbol": "MSFT",
      "companyName": "Microsoft Corp.",
      "exchange": "NASDAQ",
      "contractType": 1,
      "hasOptions": true
    },
    {
      "code": "TSLA_NASDAQ",
      "symbol": "TSLA",
      "companyName": "Tesla Inc.",
      "exchange": "NASDAQ",
      "contractType": 1,
      "hasOptions": true
    }
  ],
  "error": null,
  "meta": {
    "requestId": "req_tr1d2",
    "timestamp": "2026-03-23T15:30:01Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/short-interestGet short interest dataexpand_less

Get short interest data

API Key (X-Api-Key)

Returns short selling information for a stock including shortability status, number of shares available to short, and the borrow fee rate.

Parameters

NameTypeDescription
code *
path
string
Contract code (SYMBOL_EXCHANGE, e.g. AAPL_NASDAQ)

Responses

200Short interest data
404Contract not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/code/short-interest" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "shortable": true,
    "shortableShares": 15000000,
    "feeRate": 0.25
  },
  "error": null,
  "meta": {
    "requestId": "req_si01",
    "timestamp": "2026-03-23T12:00:00Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/dividendsGet dividend dataexpand_less

Get dividend data

API Key (X-Api-Key)

Returns dividend information for a stock including current dividend amount, yield percentage, trailing twelve month total, and the upcoming ex-dividend date.

Parameters

NameTypeDescription
code *
path
string
Contract code (SYMBOL_EXCHANGE, e.g. AAPL_NASDAQ)

Responses

200Dividend data
404Contract not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/code/dividends" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "dividendAmount": 0.25,
    "dividendYield": 0.54,
    "dividendTTM": 1,
    "exDividendDate": "2026-05-09"
  },
  "error": null,
  "meta": {
    "requestId": "req_dv01",
    "timestamp": "2026-03-23T12:00:00Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/stocks/{code}/technicalsGet technical indicatorsexpand_less

Get technical indicators

API Key (X-Api-Key)

Returns key technical indicators for a stock including RSI (5 and 14 period), implied volatility, beta, 52-week high/low, average daily volume, and market capitalization.

Parameters

NameTypeDescription
code *
path
string
Contract code (SYMBOL_EXCHANGE, e.g. AAPL_NASDAQ)

Responses

200Technical indicators
404Contract not found
curl -X GET "https://api.apps.myallies.com/v1/market/stocks/code/technicals" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "symbol": "AAPL",
    "rsi": 55.32,
    "rsi5": 48.71,
    "impliedVolatility": "32.5%",
    "beta": 1.21,
    "yearHigh": 260.1,
    "yearLow": 164.08,
    "averageDailyVolume": 62500000,
    "marketCap": 3420000000000
  },
  "error": null,
  "meta": {
    "requestId": "req_ti01",
    "timestamp": "2026-03-23T12:00:00Z",
    "version": "v1"
  }
}

terminal Try It

expand_more
GET/market/nova/suggestionsAI trade suggestionsexpand_less

AI trade suggestions

API Key (X-Api-Key)

Get AI-powered trade suggestions from the Nova ML engine. Returns options contracts ranked by predicted profitability using a LightGBM model trained on historical price, volatility, and Greeks data. Results are cached for 5 minutes.

Parameters

NameTypeDescription
topN
query
integer
Number of suggestions (1-50, default: 20)
minDte
query
integer
Minimum days to expiration (default: 0)
maxDte
query
integer
Maximum days to expiration (default: 14)

Responses

200AI trade suggestions with scores
503Nova ML engine temporarily unavailable
curl -X GET "https://api.apps.myallies.com/v1/market/nova/suggestions?topN=20&minDte=0&maxDte=14" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response Example
{
  "success": true,
  "data": {
    "modelVersion": "2.1.0",
    "suggestions": [
      {
        "symbol": "AAPL",
        "strike": 175,
        "expiry": "2026-04-25",
        "right": "P",
        "score": 0.82,
        "delta": -0.15,
        "iv": 28.5,
        "premium": 1.45
      }
    ]
  },
  "error": null,
  "meta": {
    "requestId": "req_nv1c3",
    "timestamp": "2026-04-14T10:00:00Z",
    "version": "v1"
  }
}

terminal Try It

expand_more