Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AttributeError: 'FeedTracker' object has no attribute 'getFSM' #9

Open
ghost opened this issue Dec 19, 2016 · 0 comments
Open

AttributeError: 'FeedTracker' object has no attribute 'getFSM' #9

ghost opened this issue Dec 19, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 19, 2016

Getting the above error with these settings:

python3 stakemachine/__main__.py --config config.ALTFUND.feed.yml run
2016-12-19 18:28:23,951 - stakemachine - INFO - Configuration: {
    "market_separator": ":",
    "bots": {
        "FeedTrack6": {
            "assets": [
                "EUR"
            ],
            "delay": 6,
            "spread": 6,
            "offset": 1.0,
            "amount": {
                "type": "balanced",
                "amounts": {
                    "EUR": 10
                },
                "balance": "BTS"
            },
            "markets": [
                "EUR:BTS"
            ],
            "bot": "FeedTracker",
            "threshold": 2,
            "module": "stakemachine.strategies.feed_tracker"
        }
    },
    "safe_mode": false,
    "account": "altfund",
    "witness_url": "ws://127.0.0.1:8090",
    "prefix": "ALTFUND"
}
Websocket successfully initialized!
Error dispatching notice: Traceback (most recent call last):
  File "/home/jason/.local/lib/python3.5/site-packages/graphenelib-0.4.6-py3.5.egg/grapheneapi/graphenewsprotocol.py", line 234, in dispatchNotice
    self.database_callbacks_ids[oid](self, notice)
  File "/home/jason/.local/lib/python3.5/site-packages/stakemachine-0.0.1-py3.5.egg/stakemachine/bot.py", line 41, in onBlock
    bots[name].tick()
  File "/home/jason/.local/lib/python3.5/site-packages/stakemachine-0.0.1-py3.5.egg/stakemachine/strategies/feed_tracker.py", line 98, in tick
    if self.getFSM() == "counting":
AttributeError: 'FeedTracker' object has no attribute 'getFSM'

also this error when running once

Executing bot FeedTrack6
 - Selling 10.000000 EUR for BTS @272.994226 BTS/EUR
 - Buying 10.000000 EUR with BTS @257.091649 BTS/EUR
Traceback (most recent call last):
  File "stakemachine/__main__.py", line 151, in <module>
    main()
  File "stakemachine/__main__.py", line 142, in main
    bot.once()
  File "/home/jason/.local/lib/python3.5/site-packages/stakemachine-0.0.1-py3.5.egg/stakemachine/bot.py", line 116, in once
    bots[name].loadMarket(notify=False)
  File "/home/jason/.local/lib/python3.5/site-packages/stakemachine-0.0.1-py3.5.egg/stakemachine/strategies/feed_tracker.py", line 239, in place
AttributeError: 'FeedTracker' object has no attribute '_set'
ihaywood3 pushed a commit to ihaywood3/DEXBot that referenced this issue Jun 19, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants