exchange.GetPosition (()) interface retest returns a blank value, and debug returns a normal value, what to do?

Author: jasperrr, Created: 2020-02-12 16:17:45, Updated: 2020-02-12 16:20:58

This is a very good article. function main (()) { Log ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

}

The results when retested:img

The results of the debug:img


More

The grassThe review is simulated, it has nothing to do with your exchange account, no openings of course are empty.

jasperrrIt's a simple setup of exchange.SetDirection (< "closebuy"); Error Futures_OP 0: MarginLevel can only be set in the direction for buy/sell, current settings: closebuy

jasperrrWhen retesting call exchange.GetPosition (())[0].Amount, error:main:2:38 - TypeError: Cannot read property 'Amount' of undefined

The grassIf you are interested, please contact us at: http://www.fmz.com/bbs-topic/4158#%E6%9C%9F%E8%B4%A7%E5%BC%80%E4%BB%93%E5%B9%B3%E4%BB%93

The grassNo hold is an empty array, and cannot be used with exchange.GetPosition (()) [0]