Commodity futures revaluation, long wait after the break even, positions still not updated

Author: mumumiya, Created: 2021-05-06 16:48:48, Updated:

Futures in white, written in python, the retest found that the position returned after the trade was settled was not updated in a timely manner.

For example, as shown below, the first record is the standby log, the second record is the order status returned by _C (exchange.GetOrder, id) which shows incomplete, and the second record is the order status returned by _C (exchange.GetOrder, id). The account balance shown in Article 3 is updated, and the positions obtained in Articles 4 and 5 are still > 0. Is there anyone who can tell us what happened?

2016/11/8 13:18 Futures_CTP 4 is sold (FG888, closebuy) 1259 14

2016/11/8 13:24 information Plain order not completed, please wait

2016/11/8 13:24 The information exchange.GetAccount () function returns Balance in the data: 1169872.12

2016/11/8 13:39 Futures_CTP error: There is not enough equity

2016/11/8 13:51 Futures_CTP error: There is not enough placement


More

Inventors quantifiedMaybe the order is not done, all is not in place.