Power-Trade / api-docs

0 stars 1 forks source link

Options trades predict change in Account Health but changes are inconsistent post-trade execution #41

Closed laisee closed 2 months ago

laisee commented 2 months ago

Testing the scenario where user enters short PUT trade then adds short perp trade to offset the option.

Issue - Account Health after trade executed changing to different number than displayed in Trade Confirmation UI

Account health in Options Lite UI review popup shows 64%, but after trade is executed no change in account health (stays at 100%) when adding Options trade

Screenshot 2024-05-01 at 10 25 08

Another example

Screenshot 2024-05-01 at 10 27 14
laisee commented 2 months ago

One more trade as example for this issue

Trade Confirm UI shows "48%" as predicted Account Health

Screenshot 2024-05-01 at 11 26 11

Trade is executed with 10/88 fill

Screenshot 2024-05-01 at 11 26 25

(Sub) Account Health changes from 92% to 61%

Screenshot 2024-05-01 at 11 26 36
laisee commented 2 months ago

Another trade example for this issue

Trade Confirm UI shows "0%" as predicted Account Health

n.b. tried and got same results with 248 contracts and 0.001 contracts quantity

Screenshot 2024-05-01 at 11 32 33

Trade executed for 0.001 contracts

Screenshot 2024-05-01 at 11 34 01

Post-Trade calc of Account Health shows no change

Screenshot 2024-05-01 at 11 41 13
laisee commented 2 months ago

Note that all trades above were for SELL PUT BTC.

If I Sell a CALL BTC option the account health does get updated. See screen shots below.

laisee commented 2 months ago

Sell PUT (BTC)

Screenshot 2024-05-01 at 16 31 18 Screenshot 2024-05-01 at 16 31 27

Caused Account Health to go from 100% to 34% instead of 80% as displayed on Trade Confirmation UI

Screenshot 2024-05-01 at 16 31 44
laisee commented 2 months ago

Sell CALL (BTC)

Screenshot 2024-05-01 at 16 39 09 Screenshot 2024-05-01 at 16 39 35

Account Health changes from 100% to 98% (Same as predicted on Trade Confirmation UI)

Screenshot 2024-05-01 at 16 39 58
laisee commented 2 months ago

Tested again with Sell PUT which predicted Account health to be 69% after trade execution

Screenshot 2024-05-02 at 12 01 39

Trade was executed

Screenshot 2024-05-02 at 12 01 46

And Account Health reduced to 69%

Screenshot 2024-05-02 at 12 01 59

After Position was closed the Account Health moved back to 100%

Screenshot 2024-05-02 at 12 02 54