Skip to content

When requesting provider by id, it does not give out all the symbols that are available. #18

Description

@boomhaa

For example:
when requesting: http://ip:port/v1/symbols/ticker/btcusdt
we get the response like:

{
  "symbols": [
 ...
    {
      "id": 761,
      "ticker": "btcusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 88896.98,
      "priceBuy": 88885.21,
      "updatedAt": "2026-01-25T03:53:25.649308Z"
    },
 ...
}

so symbol btcusdt is exists in the provider by providerId:1
but if we try to get all symbols by providerId:1, requesting the link: http://ip:port/v1/symbols/provider/1, we will get response like:

{
  "symbols": [
    {
      "id": 565,
      "ticker": "bdcusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.002748,
      "priceBuy": 0.003184,
      "updatedAt": "2026-01-25T03:53:24.670322Z"
    },
    {
      "id": 521,
      "ticker": "avausdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.3285,
      "priceBuy": 0.3208,
      "updatedAt": "2026-01-25T03:53:25.452808Z"
    },
    {
      "id": 972,
      "ticker": "chrusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.0396,
      "priceBuy": 0.03858,
      "updatedAt": "2026-01-25T03:53:25.12479Z"
    },
    {
      "id": 2569,
      "ticker": "metaniausdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.01608,
      "priceBuy": 0.01601,
      "updatedAt": "2026-01-14T21:18:17.212759Z"
    },
    {
      "id": 882,
      "ticker": "ccusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.16147,
      "priceBuy": 0.15923,
      "updatedAt": "2026-01-25T03:53:25.530488Z"
    },
    {
      "id": 2135,
      "ticker": "metaonusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 617.24,
      "priceBuy": 616.09,
      "updatedAt": "2026-01-14T21:18:18.691772Z"
    },
    {
      "id": 1734,
      "ticker": "holdstationusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.6606,
      "priceBuy": 0.6607,
      "updatedAt": "2026-01-14T21:18:19.412807Z"
    },
    {
      "id": 2459,
      "ticker": "ogusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 4.217,
      "priceBuy": 4.204,
      "updatedAt": "2026-01-14T21:18:18.825202Z"
    },
    {
      "id": 2832,
      "ticker": "runeusdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.6696,
      "priceBuy": 0.6677,
      "updatedAt": "2026-01-14T21:18:19.737812Z"
    },
    {
      "id": 1992,
      "ticker": "kaitousdt",
      "symbol": null,
      "providerId": 1,
      "priceSell": 0.6738,
      "priceBuy": 0.6695,
      "updatedAt": "2026-01-14T21:18:19.609893Z"
    }
  ],
  "errorCode": 0,
  "errorMsgs": []
}

and here we can't see symbol btcusdt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions