Лимитная заявка выполняется по цене хуже заданной в песочнице
VladArtemenko opened this issue · 0 comments
VladArtemenko commented
Что случилось?
Привет!
Выставляем в песочнице лимитную заявку на продажу по цене за 365.25
Но она выполняется по цене за 365.15
order_id = 581c1422-a4b6-48db-b21a-4a13b83bcbcb
account_id = 6b2bf96f-871d-4fbd-8f86-0c8b3061eee9
figi = BBG004731354
Воспроизведение
No response
Tinkoff Invest Version
0.2.0-beta26
Python Version
3.10
OS
Mac OS (m1)
Логи
Ответ при выставлении заявки
PostOrderResponse(order_id='581c1422-a4b6-48db-b21a-4a13b83bcbcb', execution_report_status=<OrderExecutionReportStatus.EXECUTION_REPORT_STATUS_NEW: 4>, lots_requested=1, lots_executed=0, initial_order_price=MoneyValue(currency='rub', units=365, nano=25), executed_order_price=MoneyValue(currency='rub', units=0, nano=0), total_order_amount=MoneyValue(currency='rub', units=365, nano=25), initial_commission=MoneyValue(currency='rub', units=0, nano=0), executed_commission=MoneyValue(currency='rub', units=0, nano=0), aci_value=MoneyValue(currency='', units=0, nano=0), figi='BBG004731354', direction=<OrderDirection.ORDER_DIRECTION_SELL: 2>, initial_security_price=MoneyValue(currency='rub', units=365, nano=25), order_type=<OrderType.ORDER_TYPE_LIMIT: 1>, message='', initial_order_price_pt=Quotation(units=0, nano=0))
Ответ тинька спустя пару секунд о статусе заявки
OrderState(order_id='581c1422-a4b6-48db-b21a-4a13b83bcbcb', execution_report_status=<OrderExecutionReportStatus.EXECUTION_REPORT_STATUS_FILL: 1>, lots_requested=1, lots_executed=1, initial_order_price=MoneyValue(currency='rub', units=365, nano=150000000), executed_order_price=MoneyValue(currency='rub', units=365, nano=150000000), total_order_amount=MoneyValue(currency='rub', units=365, nano=150000000), average_position_price=MoneyValue(currency='rub', units=365, nano=150000000), initial_commission=MoneyValue(currency='rub', units=0, nano=0), executed_commission=MoneyValue(currency='rub', units=0, nano=0), figi='BBG004731354', direction=<OrderDirection.ORDER_DIRECTION_SELL: 2>, initial_security_price=MoneyValue(currency='rub', units=365, nano=150000000), stages=[], service_commission=MoneyValue(currency='rub', units=0, nano=0), currency='rub', order_type=<OrderType.ORDER_TYPE_LIMIT: 1>, order_date=datetime.datetime(2022, 12, 30, 17, 5, 23, 938157, tzinfo=datetime.timezone.utc), instrument_uid='')