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 :: error target not found artix-arch linux-support 
Shell :: install lib atk 
Shell :: kubernetes Networking best option 
Shell :: install mxnit using pip 
Shell :: count the number of words in a file 
Shell :: Find all pods that status is NotReady jq cheatsheet 
:: opera mini for ubuntu 18.04 
::  
Shell :: Install Kite for Linux 
:: git commands cheat sheet pdf 
::  
Shell :: ping port linux 
Shell :: kubeadm get discovery-token-ca-cert-hash 
Shell ::  
Shell :: add cls as clear to bash 
Shell :: login message on mac 
Shell :: Target Packages (main 
Shell :: how to use verifly in hardhat 
Shell :: install cron into shell script 
Shell :: There are not enough slots available in the system to satisfy the 5 slots that were requested by the application 
Shell :: sort files 
Shell :: mac use multiple ssh keys for gihub 
:: conda install arrow 
:: ls show uid gid 
Shell :: Unable to install libgnutls-dev 
:: which command 
Shell ::  
Shell :: add second clock to windows powershell 
Shell :: Git - graph all commits for repot in terminal and show commit messages one line 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =