question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broker feed stuck with compression

See original GitHub issue

I am using the bitfinex. The exchange returns a feed of one minute. My bot uses a time-frame of 30 minutes, but it stuck with a compression different of 1.

Code:

hist_start_date = dt.datetime.utcnow() - dt.timedelta(minutes=50)
data = store.getdata(dataname='BTC/USDT', name="BTCUSDT",
	timeframe=bt.TimeFrame.Minutes, fromdate=hist_start_date,
	compression=30, ohlcv_limit=999, drop_newest=True)

I also tried to use cerebro.resampledata(data, timeframe=bt.TimeFrame.Minutes, compression=30) with compression 1 in store. But does not work too.

With compression=1, the feed works fine. And next() function is triggered.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Dave-Vallancecommented, Mar 27, 2019

Hi @rodrigo-brito

Ok - No rush!

I was just wondering whether to keep it open or close the issue.

Cheers

0reactions
rodrigo-britocommented, Apr 14, 2019

Sorry for the delay, i tested you code with differente time frames and work very well. I don’t now what is happening with my code. Maybe a specific indicator or other component is interfering on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fee Migration - Not Compression - LinkedIn
Today, fee compression in the asset management business is alive and kicking. ... Sure, compression may creep into the Holistic Wealth Advice business...
Read more >
Everything is free or almost free. The great cost compression ...
The great cost compression in financial services ... So, these brokers launched no-transaction-fee (NTF) platforms and told the asset ...
Read more >
Remote Desktop Connection Broker, Client gets ... - TechNet
Hello Professionals! I'm stuck for some days on the following issue described below. Any help will be highly appreciated!
Read more >
Compression for ActiveMQ to ActiveMQ - Stack Overflow
Has someone any alternatives to compress the traffic between two brokers? What about ssh tunnels if compression in ActiveMQ this is not working?...
Read more >
How Compass Contracts Can Lock in Real Estate Agents
When Compass comes clawing: How the firm's contracts lock agents in. The brokerage claims to empower agents above all else. The clawbacks in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found