Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Environment Variables Liu

#!/bin/bash
set -e

# values can be either "polygon"/"alpaca"/"gemini"/"finnhub"
export DATA_CONNECTOR="alpaca"

# which broker to use? alpaca/gemini
export LIU_BROKER="alpaca"

# Polygon API key
export POLYGON_API_KEY=""

# Alpaca Credentials, note base URL needs to be changed
# when switching to LIVE account
export APCA_API_BASE_URL="https://paper-api.alpaca.markets"
export ALPACA_STREAM_URL="wss://stream.data.alpaca.markets/v2/sip"
export APCA_API_KEY_ID=""
export APCA_API_SECRET_KEY=""

# "sip" for PRO subscriptions, "iex" for free
export alpaca_data_feed="sip" 

# Gemini 
export GEMINI_API_KEY=
export GEMINI_API_SECRET=

# lock number of CPUs & consumer processes to use
export CPU_FACTOR=4
export NUM_CONSUMERS=4

# Where to look for tradeplan.toml
export TRADEPLAN_DIR=.

# Enable tracing, using OpenTelemetry, enabled = 1, disabled = 0 (DEFAULT)
export LIU_TRACE_ENABLED=0

# Enable debugging,  enabled = 1, disabled = 0 (DEFAULT)
export LIU_DEBUG_ENABLED=1
Comment

PREVIOUS NEXT
Code Example
Shell :: remove file kali linux 
Shell :: remove file kali shell 
Shell :: mac error cannot find ghostscript lobraries 
Shell :: 8081 already in use 
Shell :: how to pass k8s secret in run command line 
Shell :: connect compute instance aws to vs code 
Shell :: get git output to terminal instead of less editor 
Shell :: How to change first occurrence of word in a string 
Shell :: how to apply password to folder and file shell scripting in linux 
Shell :: how to search to sudo apt install for applications 
Shell :: change time zone in linux 
Shell :: Bitbucket Cloud recently stopped supporting account passwords for Git authentication 
Shell :: secure copy linux 
Shell :: create a new repo 
Shell :: unzip gzip 
Shell :: download anaconda for jupyter notebook 
Shell :: linux copy with different name 
Shell :: git how to correct accidental commit of password 
Shell :: msiexec wait until finished powershell 
Shell :: Pull Changes From a Remote Repository in git command 
Shell :: ansible tar with a datestamp 
Shell :: enable synatax hightlighting in nano 
Shell :: ubuntu libre office repo 
Shell :: list of package versions dotnet 
Shell :: ecs task remove 
Shell :: debian install libssl_conf.so 
Shell :: Autobackup if directory size is more than 25 MB bash 
Shell :: unzip file git bash 
Shell :: .htaccess when deploying 
Shell :: fork, remote setup, link 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =