FutunnOpen / py-futu-api

富途 OpenAPI Python SDK
Apache License 2.0
1.03k stars 221 forks source link

Option price returned 0 #144

Open muh005 opened 1 year ago

muh005 commented 1 year ago

Run:

Screen Shot 2023-10-02 at 12 49 11

Expected: response['price'] should return the price of the order (example: 95)

Screen Shot 2023-10-02 at 12 57 46

FutuOpenD 7.01.3308 py-futu-api 6.3.2808 python 3.6.6

potatobs4321 commented 1 year ago

Run: Screen Shot 2023-10-02 at 12 49 11

Expected: response['price'] should return the price of the order (example: 95) Screen Shot 2023-10-02 at 12 57 46

FutuOpenD 7.01.3308 py-futu-api 6.3.2808 python 3.6.6

the 'price' of a MARKET order is always zero, because a MARKET order does not have a price. If you want yo get the dealt price of the order, you can check the 'dealt_avg_price' field. image