Skip to content

my collection of different scripts to trade with Alpaca

Notifications You must be signed in to change notification settings

alexanu/alpaca_snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git

Init

git init
git add .
git commit -m "initial commit"

git remote add origin https...
git branch -M main
git push -u origin main

Maintain

git add -A
git commit -m "Update"
git push

Update local content from Github:

git pull origin main

Conda Virtual Environments for Windows:

Activating

View all our virtual environments: conda env list Create virtual environment: conda create -n alpaca_env Activate environment: conda activate alpaca_env  Instal pip inside the environment: conda install pip If the above didn't work, try like this: go to base environment and do conda install -n alpaca_env python Install needed package: pip install -r requirements.txt Check which package are installed inside the environment: conda list Exit the environment: conda deactivate Delete the environment: conda env remove -n alpaca_env

Interactiv window

I got a problem when in activated environment in VS Code I do "shift+Enter" (Interactive Window) for a specific line of code... ... it doesn't execute it in selected environment, but in "base", where needed packages are NOT installed. To solve this: Option (A): (1) Press Ctrl + Shift + P and select Terminal Configuration (2) Search for "python.conda", and paste your conda path: "C:\ProgramData\Anaconda3\Scripts\conda.exe" Option (B): (1) Go to Anaconda Prompt; (2) Do "conda activate alpaca_env"; (3) Do "code" - this will open VS Code in alpaca_env; (4) Now Shift+Enter will send a command to alpaca_env

About

my collection of different scripts to trade with Alpaca

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published