@Brian I was able to successfully create the "compose-overrride.yml" file and as you can see below it is successfully showing up on my configuration. However, I'm still receiving errors when I attempt to "set_credentials" inside of Jupyter Notebook (I've also pasted that error below).
chris@Chriss-MBP-2 quantrocket % docker compose config
name: quantrocket
services:
account:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/account:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
blotter:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/blotter:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
codeload:
environment:
GIT_URL: https://github.com/quantrocket-codeload/quickstart.git
OVERWRITE_EXISTING: "true"
image: quantrocket/codeload:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
countdown:
image: quantrocket/countdown:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
- type: volume
source: codeload
target: /codeload
volume: {}
db:
depends_on:
postgres:
condition: service_started
required: true
image: quantrocket/db:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
flightlog:
environment:
SEND_CRASH_REPORTS: "true"
image: quantrocket/flightlog:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: flightlog
target: /var/log/flightlog
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
fundamental:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/fundamental:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
history:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/history:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
houston:
environment:
QUANTROCKET_VERSION: 2.9.2
image: quantrocket/houston:2.9.0
networks:
default: null
ports:
- mode: ingress
target: 80
published: "1969"
protocol: tcp
restart: always
ibg1:
environment:
INI_SETTINGS: --ExistingSessionDetectedAction=primary
image: quantrocket/ibg:2.9.2
networks:
default: null
platform: linux/x86_64
restart: always
volumes:
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
ibg2:
environment:
INI_SETTINGS: --ExistingSessionDetectedAction=primary
image: quantrocket/ibg:2.9.2
networks:
default: null
platform: linux/x86_64
restart: always
volumes:
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
ibgrouter:
image: quantrocket/ibgrouter:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
jupyter:
image: quantrocket/jupyter:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
license-service:
image: quantrocket/license-service:2.9.1
networks:
default: null
restart: always
volumes:
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
logspout:
command:
- syslog+udp://flightlog:9021,syslog://logs5.papertrailapp.com:47405?filter.name=*houston*
depends_on:
flightlog:
condition: service_started
required: true
houston:
condition: service_started
required: true
environment:
BACKLOG: "false"
image: quantrocket/logspout:2.9.0
networks:
default: null
restart: always
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
bind:
create_host_path: true
master:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/master:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: codeload
target: /codeload
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
moonshot:
image: quantrocket/moonshot:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
postgres:
environment:
PGDATA: /var/lib/quantrocket/postgresql12/data/pg_data
image: quantrocket/postgres:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
realtime:
depends_on:
db:
condition: service_started
required: true
image: quantrocket/realtime:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
satellite:
depends_on:
codeload:
condition: service_started
required: true
image: quantrocket/satellite:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
zipline:
image: quantrocket/zipline:2.9.0
networks:
default: null
restart: always
volumes:
- type: volume
source: codeload
target: /codeload
volume: {}
- type: volume
source: db
target: /var/lib/quantrocket
volume: {}
- type: volume
source: settings
target: /etc/opt/quantrocket
volume: {}
networks:
default:
name: quantrocket_default
volumes:
codeload:
name: quantrocket_codeload
db:
name: quantrocket_db
flightlog:
name: quantrocket_flightlog
settings:
name: quantrocket_settings
x-quantrocket-deploy-target: local
x-quantrocket-version: 2.9.2
When I attempt to "set_credentials" as follows I receive the below error:
from quantrocket.ibg import set_credentials
set_credentials("ibg2", username="dlehman1927", trading_mode="paper")
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[38], line 2
1 from quantrocket.ibg import set_credentials
----> 2 set_credentials("ibg2", username="dlehman1927", trading_mode="paper")
File /opt/conda/lib/python3.11/site-packages/quantrocket/ibg.py:128, in set_credentials(gateway, username, password, trading_mode)
126 statuses = list_gateway_statuses(gateways=[gateway])
127 if not statuses:
--> 128 raise ValueError("no such IB Gateway: {0}".format(gateway))
130 if username and not password:
131 password = getpass.getpass(prompt="Enter IBKR Password: ")
ValueError: no such IB Gateway: ibg2
For what it's worth I have been able to successfully set my ibg1 credentials.
By the way, I don't know why the config is showing me as running Quantrocket Version 2.9, I upgraded to the latest (2.10.2) which is what shows in Jupyter Notebooks.
Guidance is appreciated.
Thanks!