Category : cryptocurrency

I ran hyperopt for 5000 iterations and got the following results: 2022-01-10 19:38:31,370 – freqtrade.optimize.hyperopt – INFO – Best result: 1101 trades. Avg profit 0.23%. Total profit 25.48064438 BTC (254.5519Σ%). Avg duration 888.1 mins. with values: { ‘roi_p1’: 0.011364434095803464, ‘roi_p2’: 0.04123147845715937, ‘roi_p3’: 0.10554480985209454, ‘roi_t1’: 105, ‘roi_t2’: 47, ‘roi_t3’: 30, ‘rsi-enabled’: True, ‘rsi-value’: 9, ‘sell-rsi-enabled’: True, ..

Read more

first data when run below code is well. but i need date in x axis test[‘avg’].plot(legend=True,figsize=(12,5)) plt.grid(True) plt.xlabel(‘ADX’) plt.ylabel(‘date’) plt.title(‘ADX indicator’) plt.gcf().autofmt_xdate() plt.show() correct plot but when i chose date for x axis i take a bad plot. code is below df.set_index(‘date’,drop=True, inplace=True) modified data test[‘avg’].plot(legend=True,figsize=(12,5)) plt.grid(True) plt.xlabel(‘ADX’) plt.ylabel(‘date’) plt.title(‘ADX indicator’) plt.gcf().autofmt_xdate() plt.show() bad image ..

Read more

i try to discover the binance api and i can’t buy some crypto, i followed a tutorial documentation and did this inside my function: buy_order = client.create_test_order(symbol=’BATUSDT’, side=’BUY’, type=’MARKET’, quantity=20) and it doesn’t work,it do nothing. When i change my symbol: buy_order = client.create_test_order(symbol=’Test’, side=’BUY’, type=’MARKET’, quantity=20) it gives me an error, same when i ..

Read more

def placeSELLStopLimitOrder(dollars, BTC_VALUE): # boolean is on/off switch of client creation, False or True client = Client(testnet_api_key, testnet_api_secret, True) tid = "P_sell_100" + str(datetime.datetime.now()) # a 15% smaller trigger # print("BTC_VALUE: ", BTC_VALUE) coreBTCValue = float(BTC_VALUE) * 10000 bearTriggerPrice = coreBTCValue * 0.85 bullTriggerPrice = coreBTCValue * 1.05 r = client.place_order( { "clOrdID": tid, "symbol": ..

Read more

I am downloading data from the cryptocurrency exchange dydx. The example URL of REST API endpoint that I am dealing with is https://api.dydx.exchange/v3/historical-funding/BTC-USD (You can check out the API document of the API endpoint as well) Since there is a Python library provided by dydx, I used the Python codes to download data from the ..

Read more