We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First of all thanks for sharing the project.
When I add a lot of alt coins the initialize_trade_thresholds is very slow. I added multi core support to speed it a little. Hope you find it useful.
import multiprocessing as mp def get_coin_value(client, coin_dict, coin): coin_dict_price = float(get_market_ticker_price(client, coin_dict + 'USDT')) coin_price = float(get_market_ticker_price(client, coin + 'USDT')) return coin_dict, coin, coin_dict_price / coin_price def add_coin(results): coin_dict = results[0] coin = results[1] price = results[2] g_state.coin_table[coin_dict][coin] = price def initialize_trade_thresholds(client): ''' Initialize the buying threshold of all the coins for trading between them ''' global g_state pool = mp.Pool(processes=14) # core count - 2 for coin_dict in g_state.coin_table.copy(): for coin in supported_coin_list: if coin != coin_dict: pool.apply_async(get_coin_value, args = (client, coin_dict, coin, ), callback = add_coin) pool.close() pool.join() with open(g_state._table_backup_file, "w") as backup_file: json.dump(g_state.coin_table, backup_file)
The text was updated successfully, but these errors were encountered:
Looks good :) Do you mind opening a pull request?
Sorry, something went wrong.
Merge pull request edeng23#6 from ludem/dev/max-init-weight
c3f9c3e
fix: (ratio_adjust) use max 500 candles to init ratios
Merge pull request edeng23#6 from CryptoIsGarbage/docker-compose-fixes
d1afaa0
Build locally in Docker compose and disable garbage
Merge pull request edeng23#6 from darthvader666uk/master
514d5ca
python Import Error: cannot import name 'BaseResponse' from 'werkzeug.wrappers' and cannot import name 'escape' from 'jinja2'
No branches or pull requests
First of all thanks for sharing the project.
When I add a lot of alt coins the initialize_trade_thresholds is very slow. I added multi core support to speed it a little. Hope you find it useful.
The text was updated successfully, but these errors were encountered: