-
如: 2秒K线,会连续多次输出同一个值
if api.is_changing(klines.iloc[-1], "close"):
print(klines.iloc[-1].close)
-
Also having issues with tensor flow here. Came from a CCXT example and this particular code:
**Code:**
```
const retrieveMACD = (klines) => {
const closes = klines.map(kline => kline[4])
…
-
I can't say for sure what's wrong (I'm not familiar how RSI is calculated), but the calculation itself is not providing the right result when I compare to what I see on Tradingview. To triple-check I …
-
下载的数据:时间09:00:00.000000000有9个0
然而tafunc.time_to_s_timestamp和tafunc.time_to_str都是6个0
有点不一致啊
-
在策略中想利用api.draw_line绘制信号线(线段),打印日志显示开、平点数据都是正确的,但是显示出来的结果都是水平直线,不知道是sdk的bug还是天勤终端的bug,貌似“SEG”、“RAY”均不起作用,都会绘制成直线。
绘图语句示例:
if longamt < prelongamt: #如果有平仓,则绘制信号线
api.draw_line(klines, l…
xcgoo updated
5 years ago
-
Hello,
Just a question regarding the best approach on getting data form crypto exchange gateway.
My need is to get just close candles and when a new candle (close) trigger a stragegy is applied to…
Gabri updated
5 years ago
-
With an unreliable connection calls to `binance_klines()` will sometimes hang and never return. The `httr` package supports `timeout()` option for the `GET()` function: https://rdrr.io/cran/httr/man/t…
-
I tried to fetch new Klines in a loop, and the way I tried to achieve this was to update the KlineService's `startTime` parameter with the `CloseTime` value from the last Kline in a set of 1000 Klines…
-
I see this error in my logs
```
Oct 02 03:19:53 computer go[23503]: WARN[1443] Response from fetching https://api.binance.com/api/v1/klines?symbol=USDCUSDT&interval=1d&limit=1. Response code: 403, …
-
![BYVJ1A72Q@KOQ6$R)(MJF}5](https://user-images.githubusercontent.com/49545435/68265987-9abf4500-0088-11ea-87a2-c2b3a9d3b375.png)
`from tqsdk import TqApi ,TqAccount, TargetPosTask
SYMBOL = 'SHFE…