Merge pull request #1411 from nanoric/fixed_price_type_annotation
[Fix] Fixed an type annotation error: type of OrderRequest.price_type…
This commit is contained in:
commit
6ce3f64c75
@ -6,7 +6,7 @@ from dataclasses import dataclass
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from logging import INFO
|
from logging import INFO
|
||||||
|
|
||||||
from .constant import Direction, Exchange, Interval, Offset, Status, Product, OptionType
|
from .constant import Direction, Exchange, Interval, Offset, Status, Product, OptionType, PriceType
|
||||||
|
|
||||||
ACTIVE_STATUSES = set([Status.SUBMITTING, Status.NOTTRADED, Status.PARTTRADED])
|
ACTIVE_STATUSES = set([Status.SUBMITTING, Status.NOTTRADED, Status.PARTTRADED])
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ class OrderRequest:
|
|||||||
symbol: str
|
symbol: str
|
||||||
exchange: Exchange
|
exchange: Exchange
|
||||||
direction: Direction
|
direction: Direction
|
||||||
price_type: str
|
price_type: PriceType
|
||||||
volume: float
|
volume: float
|
||||||
price: float = 0
|
price: float = 0
|
||||||
offset: Offset = Offset.NONE
|
offset: Offset = Offset.NONE
|
||||||
|
Loading…
Reference in New Issue
Block a user