ADD: added first version

This commit is contained in:
hwinkel
2026-01-14 22:44:12 +01:00
commit 2b892123e1
18 changed files with 580 additions and 0 deletions

19
internal/config/alpaca.go Normal file
View File

@@ -0,0 +1,19 @@
package config
import "os"
type AlpacaConfig struct {
ApiKey string
ApiSecret string
DataURL string
TradeURL string
}
func LoadAlpaca() AlpacaConfig {
return AlpacaConfig{
ApiKey: os.Getenv("ALPACA_API_KEY"),
ApiSecret: os.Getenv("ALPACA_API_SECRET"),
DataURL: os.Getenv("ALPACA_DATA_URL"),
TradeURL: os.Getenv("ALPACA_TRADE_URL"),
}
}