How do you write in Python to buy at the market price when one of the latest three-minute tabs is about to close?

Author: NinjiaBro, Created: 2021-09-13 20:03:38, Updated:

In trading digital currencies, write a quantification strategy using python. I'm trading based on judging at the end of a three-minute chart, but how can I use code to decide whether to buy or sell at the end of a three-minute chart?


More

The grassThe timestamp is used to determine if any new K-lines have been generated.

NinjiaBroHow does the getRecord () time stamp determine if a new k-string has been generated?