- Forums
- Help
- We asked a question about the k-line.
We asked a question about the k-line.
Author:
tony233, Created: 2021-08-03 22:26:26, Updated:
I looked at the API documentation about exchange.GetRecords (),Log (),Current K-line (),Last (),Rekords (-1),Current K-line (),Rekords (-2))
Here records[-1] represents the latest k line, I want to ask what does the latest k line mean? For example, if I set the cycle to 5 minutes, if it is now 9:32, then I use record=exchange.GetRecords ((PERIOD_M5) record[-1][Close button]
In other words, if the time cycle I set doesn't end, what does the price look like?
More
- Our department has a large number of 100,000 U-level high-quality customers, take the cooperative win-win commission sharing model, welcome the creators of high-quality trend strategy consultation and talk
- Ask God, how did the Binance U-Byte contract get even without the swap interface?
- Re-testing using the Binance/OK platform Re-testing has results, using Binance futures/OK futures Re-testing has no results ((showing error in the following direction, same source code)
- The problem of the binance review
- python: What is the mechanism of sleep, why do you add sleep to each cycle, and how long do you need to sleep each time
- My language moneytot shows problems
- The big reveal of how Martin was profitable
- Error: Variety switching failed, billing currency cannot switch to ETH_BTC
- Strategy writing skills
- Manual opening, mobile stop and stop loss executed by the program, how to write?
- What's wrong?
- How has the amount changed?
- Please consult OKEX Permanent Contract Orders how to change the whole-stock model to a stand-alone model.
- Calculation of the collateral rate
- Help, how to pass the dash in io function
- Calculation of total income
- The coin circle rings again, please.
- After a while the hard disk is paused, does the data restart non-continuously?
- Ask a Great God to help you change your strategy
- Does a manual trade affect the next automatic trade signal?
The grassThe latest version of K Line's Close has been changing according to the market.
The grassTime zones are different, timelines are the same
tony233Why is your local time on your platform 8 hours slower than Beijing time... I spent half a day thinking how the exchange rate is not right, the time is wrong...
tony233 666
The grassNote the difference between ms and s, except for 1000 tries.
tony233I also want to ask a question, my record [-1]['Time'] get is how does the time stamp convert costly time, I've gotten it wrong, please help me see, I use python
'"
Start: 2021-08-02 00:00:00 This is the latest version of the game.
End: 2021-08-03 00:00:00 This is a list of all the different ways I'm going to post this post.
period: 1h
[{"eid":"okex","currency":"BTC_USDT","stocks:"0}]
'"
import numpy as np
import pandas as pd
Import time
import date time
from fmz import* # Import all FMZ functions
I'm going to try to get this to work.
while True:
record = exchange.GetRecords
time1 = record[-1]['Time']
time_local = time.localtime ((time1)
time2 = time.strftime (("%Y-%m-%d %H:%M:%S", time_local)
print ((time2)
So the output is going to be this.
tony233Oh, that's right, thank you.