The Binance contract diskette has been reporting an error. GetAccount: Invalid ContractType

Author: bbbwwed2009, Created: 2022-02-05 11:54:48, Updated:

Futures_Binance error GetAccount: Invalid ContractType is not supported

Can you tell me how to write a problem in my code?

“contractType”: [“swap”, “swap”], exchanges[i].SetContractType(params[“contractType”][i], params[“contractType”][i])


More

bbbwwed2009That's good.

The Little DreamThe code is written incorrectly, and the SetContractType parameter can be understood by printing it.

bbbwwed2009/upload/asset/25b579daa50cd6de5c898.png To get the parameters of the industry assignment when the main function starts, you can not return errors, you do not know why

The Little DreamI've tested what should be possible, you can see the screenshot, test in the debug tool, screenshot.

bbbwwed2009I'm going to write this for you directly for i in range ((len ((exchanges)): If you want to change the name of your account, you need to change the name of your account to get account: Invalid ContractType.

bbbwwed2009ret = exchanges[i].SetContractType ((params["contractType"][i], params["contractType"][i]) is a type of data exchange that is used to store data. Log ((ret) I wrote this without seeing the return?