---
title: "Get markets v4"
method: GET
path: "/v4/affiliate/get_markets"
tags: ["market"]
---

# Get markets v4

`GET /v4/affiliate/get_markets`

## Request

- Base URL: `https://cash.api.prophetx.co/partner`
- URL: `https://cash.api.prophetx.co/partner/v4/affiliate/get_markets`
- Auth: API key in header `Authorization`

get the list of markets.

## Query parameters

- `event_id` integer, required
- `get_all_market` boolean
- `market_type` 'moneyline' | 'spread' | 'total' | 'sup_moneyline'
- `market_types` string[]
- `min_liquidity` number

## Response `200`

OK

- AffiliateListAffiliateResponseV4
  - `event_id` integer
  - `markets` V4AffiliateMarketV4[]
    - `category_name` string
    - `display_name` string
    - `favourite` boolean
    - `group_name` string
    - `id` integer
    - `line` number
    - `name` string
    - `player_id` integer
    - `selections` array[]
      - V4Selection[]
        - `adjusted_price` number
        - `competitor_id` integer
        - `display_name` string
        - `display_price` string
        - `display_strike` string
        - `name` string
        - `outcome_id` integer
        - `price` number
        - `quantity` number
        - `strike` number
        - `strike_id` string
        - `updated_at` integer
        - `value` number
    - `sub_type` string
    - `type` 'moneyline' | 'spread' | 'total' | 'sup_moneyline': @deprecated

## Other responses

- `400`: Bad request
- `500`: Internal server error

---

[API](https://skmtc.dev/prophetx/apis/external-affiliate-api.md) - [All operations](https://skmtc.dev/prophetx/apis/external-affiliate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prophetx/apis/external-affiliate-api/revisions/d93f12f53af0?raw)
