Valley LogoBETA
Stocks APIStock History

Stock History

Returns daily OHLCV (Open, High, Low, Close, Volume) records for a stock over a chosen period.

Request

http
1GET /v1/stocks/MTNGH/history?period=7d HTTP/1.1
2Host: api.usevalley.xyz
3X-API-Key: live_your_key_here

Path parameters

ParameterDescription
symbolGSE ticker symbol

Query parameters

ParameterTypeDefaultDescription
periodstring7dtoday, 7d, 1m, 3m, 6m, 1yr, ytd, all

Response

json
1{
2  "data": [
3    {
4      "date": "2026-02-25",
5      "open": 2.02,
6      "high": 2.08,
7      "low": 2.0,
8      "close": 2.07,
9      "volume": 980000,
10      "vwap": 2.04
11    },
12    {
13      "date": "2026-02-26",
14      "open": 2.07,
15      "high": 2.14,
16      "low": 2.05,
17      "close": 2.1,
18      "volume": 1250000,
19      "vwap": 2.09
20    }
21  ],
22  "meta": {
23    "timestamp": "2026-03-03T11:22:22Z",
24    "version": "1.0",
25    "exchange": "GSE"
26  }
27}

Notes

  • Records are ordered oldest → newest.
  • vwap (Volume-Weighted Average Price) is included where available.
  • For period=today, the response may be empty outside of GSE trading hours if no ticks have been recorded yet.