RussianInvestments / invest-python

Invest Python gRPC client
https://russianinvestments.github.io/invest-python/
Apache License 2.0
66 stars 21 forks source link

PostStopOrder INVALID_ARGUMENT 30109 #48

Closed pavel-abramov closed 4 months ago

pavel-abramov commented 4 months ago

Что случилось?

На тикере VTBR (figi - BBG004730ZJ9) падает выставление стоп-лимит заявки

окружение python = "3.12.2" tinkoff-investments = "^0.2.0b103"

Такое поведение проверил на количестве слотов (quantity) от 45 и выше.

Воспроизведение

from tinkoff.invest import Client, InstrumentIdType, StopOrderDirection, StopOrderExpirationType, StopOrderType

        response = client.stop_orders.post_stop_order(
            figi="BBG004730ZJ9",
            quantity=45,
            price=Quotation(units=96, nano=900000000),
            stop_price=Quotation(units=96, nano=930000000),
            direction=StopOrderDirection.STOP_ORDER_DIRECTION_SELL,
            account_id=account_id,
            expiration_type=StopOrderExpirationType.STOP_ORDER_EXPIRATION_TYPE_GOOD_TILL_CANCEL,
            stop_order_type=StopOrderType.STOP_ORDER_TYPE_STOP_LIMIT,
        )

### Tinkoff Invest Version

0.2.0-beta103

### Python Version

Другая

### OS

Linux

### Логи

```Shell
File "/usr/local/lib/python3.12/site-packages/tinkoff/invest/_errors.py", line 41, in wrapper
    raise RequestError(status_code, details, metadata) from e
tinkoff.invest.exceptions.RequestError: (<StatusCode.INVALID_ARGUMENT: (3, 'invalid argument')>, '30109', Metadata(tracking_id='', ratelimit_limit='50, 50;w=60', ratelimit_remaining=48, ratelimit_reset=42, message='Maximum transaction amount has been exceeded'))
pavel-abramov commented 4 months ago

проблема ушла, неактуально