Skip to content

Commit

Permalink
Merge pull request #32 from TinkoffCreditSystems/docs/30
Browse files Browse the repository at this point in the history
#30 Add Rate Limiting doc
  • Loading branch information
NikitaMelnikov authored Oct 31, 2019
2 parents 9a00419 + 31a53a8 commit 65510a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/docs/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

Документация: [Swagger](https://tinkoffcreditsystems.github.io/invest-openapi/swagger-ui/)

## Ограничение количества запросов

| Ресурс | Количество запросов | Интервал ограничения |
| :---------- | :------------------ | :------------------- |
| /sandbox | 120 | 1 минута |
| /portfolio | 120 | 1 минута |
| /market | 120 | 1 минута |
| /orders | 120 | 1 минута |
| /operations | 120 | 1 минута |


При превышении лимита запросов возвращается ошибка `429 Error: Too Many Requests`

## Генерация

REST-api использует OpenApi 3.0.0, для генерации клиентов необходимо использовать новую версию [swagger-gen](https://github.com/swagger-api/swagger-codegen/tree/3.0.0).
Expand Down

0 comments on commit 65510a6

Please sign in to comment.