hummingbot / deploy

This repository provides various examples of how to deploy Hummingbot using Docker.
Apache License 2.0
85 stars 87 forks source link

Credentials - Unable to add dydx_v4_perpetual #65

Open rapcmia opened 2 months ago

rapcmia commented 2 months ago

Describe the bug

When testing a PR that fix hummingbot lib and built a hummingbot library then use the ./dist/..whl path file to backend-api's environment.yml. Modified and add v4-proto==6.0.2 and run make install which successfully build backend-env image

Backend-api: image

However when adding dydx_v4_perpetual API keys to dashboard getting bad request image

INFO:     127.0.0.1:62831 - "GET /list-accounts HTTP/1.1" 200 OK
INFO:     127.0.0.1:62832 - "GET /list-credentials/master_account HTTP/1.1" 200 OK
INFO:     127.0.0.1:62833 - "GET /list-credentials/master_account HTTP/1.1" 200 OK
INFO:     127.0.0.1:62835 - "GET /is-docker-running HTTP/1.1" 200 OK
INFO:     127.0.0.1:62836 - "GET /list-accounts HTTP/1.1" 200 OK
INFO:     127.0.0.1:62837 - "GET /list-credentials/master_account HTTP/1.1" 200 OK
INFO:     127.0.0.1:62838 - "GET /list-credentials/master_account HTTP/1.1" 200 OK
/Users/rapcomia/miniconda3/envs/backend-api/lib/python3.10/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.0 at cosmos/auth/v1beta1/auth.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
  warnings.warn(
/Users/rapcomia/miniconda3/envs/backend-api/lib/python3.10/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.0 at amino/amino.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
  warnings.warn(
INFO:     127.0.0.1:62839 - "POST /add-connector-keys/master_account/dydx_v4_perpetual HTTP/1.1" 400 Bad Request

Steps to reproduce bug

  1. Build .whl from latest development hummingbot branch
  2. Use the path and modify backend-api env file then run make install
  3. Go to dashboard and add API keys of dydx_v4_perpetual
rapcmia commented 2 months ago

Found out that setup.py had a dependecy of injective-py therefore we commented it then add v4_proto and bip_utils to backend-api environment.yml

image image

Successfully added the connector from dashboard: image image

Note: Current hummingbot lib is not updated causing dydx_v4_perpetual not usable on dashboard. User must build the .whl locally