Sleep function caused subscription failure

Author: Jason_MJ, Created: 2021-04-13 16:38:26, Updated:

Ask yourself: Why is it that exchanges[0] are Bitcoin's ETH_USDT, and exchanges[1] are Bitcoin's ETH_USDT futures, and when operating two trading pairs, if there is a Sleep function in the middle, it will report the subscription futures' variety failure when retesting.


More

The grassLet me test it.

Jason_MJThere is also the question of whether the retesting is to get the current fixed-term contract capital rate and only after the contract is signed, the information on the capital rate output of each log?

The grassYou can only use the get method once in retesting, so it's best not to use it.

Jason_MJHi, can't request the Binance HTTP interface during the retest? Can't use request

The grassThe rate of return can be approximated, and the rate of return is calculated as a continuous contract that does not involve actual delivery.

Jason_MJDo you have any information on the number of days and price of the deal?

The grassIt's all right.

Jason_MJDo you have any results for the function Sleep?

The grassNo, it won't.

Jason_MJThe big question is whether a permanent contract will not trigger a hard disk operation like a real disk.

Jason_MJUnderstood, thank you.

The grassI need to charge a fee.

Jason_MJHi, there is another problem, during the review process, the total amount of the order is greater than the balance of my account, but later on the balance will be insufficient, I calculated, the total amount of the order is greater than 99.7% of the balance of my account.