custom_strategy ImportError: cannot import name 'bitmex' from 'market_maker'
See original GitHub issueI have successfully installed market maker via the “getting started” instructions in the README.
I am on Mac OSX 10.10.5
I can successfully run “marketmaker XBTUSD” using DRYRUN=True on testnet and get the expected output.
What I am having trouble with and don’t understand how to do is running the custom strategy.
Executing the following:
python3 market_maker/custom_strategy.py
gives the following error:
Traceback (most recent call last):
File "market_maker/custom_strategy.py", line 3, in <module>
from market_maker.market_maker import OrderManager
File "/Users/MYUSERNAME/python_projects/market_maker/market_maker.py", line 11, in <module>
from market_maker import bitmex
ImportError: cannot import name 'bitmex' from 'market_maker' (/Users/MYUSERNAME/python_projects/market_maker/market_maker.py)
Can someone explain step-by-step what has to be done to execute a custom strategy?
Thank you.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
python marketmaker botcustomisation...ImportError - Reddit
ImportError : cannot import name 'bitmex. I have been able to run the sample python marketmaker on testnet using my API keys with...
Read more >how to run "custom_strategy" in Bitmex - Stack Overflow
Run python custom_strategy.py in windows Powershell, nothing happened, no error information, no order has been placed in Testnet Bitmex. Can ...
Read more >bitmex-market-maker - PyPI
BitMEX Market Maker. This is a sample market making bot for use with BitMEX. It is free to use and modify for your...
Read more >Trading Rules - BitMEX
BitMEX enforces the following Trading Rules and implements the following Protections to encourage efficient trading strategies, incentivise behaviours that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Instead of running the custom strategy directly (
python3 market_maker/custom_strategy.py
), create a script to run it from the top-level directory, similar tomarketmaker
(note no extension):ryanfox has the best correct answer. Thank you.