Tinkoff / investAPI

391 stars 136 forks source link

Свечи приезжают не корректные для TCS00A1062M5 #441

Closed s1eepwalker closed 1 year ago

s1eepwalker commented 1 year ago

До недавнего времени все было ок. И на первой версии апи тоже.

curl -X 'POST' \
  'https://invest-public-api.tinkoff.ru/rest/tinkoff.public.invest.api.contract.v1.MarketDataService/GetCandles' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer TOKEN_PLACE_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
  "figi": "TCS00A1062M5",
  "from": "2023-06-01T06:02:11.068Z",
  "to": "2023-06-16T06:02:11.068Z",
  "interval": "CANDLE_INTERVAL_DAY",
  "instrumentId": "string"
}'
{
  "candles": [{
    "open": {
      "units": "99",
      "nano": 510000000
    },
    "high": {
      "units": "100",
      "nano": 240000000
    },
    "low": {
      "units": "99",
      "nano": 510000000
    },
    "close": {
      "units": "100",
      "nano": 130000000
    },
    "volume": "2094",
    "time": "2023-06-01T07:00:00Z",
    "isComplete": true
  }, {
.....
s1eepwalker commented 1 year ago

rtfm https://tinkoff.github.io/investAPI/points/#_2