Questions tagged [alpaca]
45 questions
0
votes
0 answers
What are the recommended security practices for training a chatbot with sensitive corporate data?
I'm working on developing a chatbot that will use sensitive corporate data, and I'm concerned about the security implications of sending this data to a remote server for training. What are the recommended security practices for training a chatbot…

VGF
- 55
- 8
0
votes
0 answers
What is language model will fit in my 7950x 16core & rtx3090 with 64 gb of ddr 5 ram
What is the best language model fits my hardware with longer context. Can any one guide me
(Noobe)

Harsha Kodali
- 74
- 1
- 8
0
votes
2 answers
Running Databricks Dolly locally on my Mac M1
I am trying to deploy and run Databricks Dolly, which a latest released opensource LLM model as an alternate option to gpt
Doc - https://learn.microsoft.com/en-us/azure/architecture/aws-professional/services
Tried to run this with hugging dace…

Kush Verma
- 35
- 1
- 7
0
votes
1 answer
No module named 'alpaca'
I've been trying to run my code on a Google Colab Workspace that imports various modules from the alpaca-trade-api package. However, I'm encountering a ModuleNotFoundError, which indicates that the package is not installed in my Python…

Alex Halliday
- 1
- 1
0
votes
1 answer
Why is my websocket coroutine not being called in the following code?
I am using alpaca-py, Alpaca's new python package, to create a basic tradebot. My goal is to have the bot make a trade (buy), get data back from Alpaca's webhook regarding whether the order was filled (and some other information), and then make…

Lewis F
- 34
- 7
0
votes
0 answers
Make - error: inlining failed in call to always_inline (Alpaca)
I am trying to install Alpaca on my Linux Mint 20.3 Cinnamon. However when it comes to the Make part I get the following output
(base) ricc@ricc-K5:/mnt/Storage/software/dalai$ npx dalai alpaca install 7B --home /mnt/Storage/software/dalai
mkdir…

Gianf DS
- 51
- 1
- 8
0
votes
1 answer
Alpaca trading "error: invalid syntax (400)"
I'm having an issue running a very simple script to pull in live data data from their web socket.
I wrote a simple script to connect to the websocket and get a non descriptive error with no python exception
$ python3.9 bot.py
error: invalid syntax…

Ryan Marshall
- 31
- 4
0
votes
1 answer
code not working after installation of all files
import alpaca_trade_api as tradeapi
# API credentials
API_KEY = 'key entered'
API_SECRET = 'secret key entered '
APCA_API_BASE_URL = 'https://paper-api.alpaca.markets'
# Alpaca API client
api = tradeapi.REST(API_KEY, API_SECRET, APCA_API_BASE_URL,…

Arnav
- 1
- 1
0
votes
0 answers
How can I get the current price of a futures contract on Alpaca API using the get_last_trade_for_symbol method or an alternative method?
AttributeError: 'REST' object has no attribute 'get_last_trade_for_symbol' when using Alpaca API in Python for CL crude oil futures trading. What is the alternative method to retrieve the current price of a contract symbol?
We tried to use the…

Ishmael
- 1
0
votes
1 answer
Store "Alpaca Markets" historical data timestamp to regular datetime field in sqlite database
Alpaca returns the four_hourly_bars historical bar data as in the following format;
data={'AMD': [{ 'close': 63.76,
'high': 63.76,
'low': 62.7,
'open': 62.94,
'symbol': 'AMD',
'timestamp': datetime.datetime(2022, 10, 3, 8, 0,…

mhiytham
- 5
- 3
0
votes
0 answers
Expo useAuthRequest Alpaca markets OAuth requires response_type. The app opens an allows me to sign into the alpaca account but authentication fails?
I am building an app with react native and expo. I need users to sign into another service called Alpaca Markets. I am using useAuthRequest from expo. I have the client ID set I am using
extraParams: {
response_type: client_secret
…

Connor Spackman
- 3
- 1
0
votes
0 answers
Obtaining timestamp and building array, from stock data | Close trade before market close
End Goal: create a boolean array displaying True for times over 15:55:00
I am using an Alpaca API to obtain stock data.
vbt.settings.data['tz_localize'] = 'EST'
vbt.settings.data['tz_convert'] = 'EST'
data = vbt.AlpacaData.download('SPY',…

thetadecay
- 23
- 3
0
votes
0 answers
Property 'getAggregates' does not exist on type 'Alpaca'
I am currently trying to make a stock screener using the Alpaca Trade API. I followed this tutorial, but it was made in 2020 and I suspect the API has had an update since. After following the tutorial and checking with the source code, I have found…

Archigan
- 62
- 11
0
votes
0 answers
How to specifying clustering of standard errors within the feglm equation (alpaca)
I'm using the alpaca package (feglm) to specify a FE model, with individuals nested within states:
logit1 <- feglm(response ~ var1 + var2 + var3 | state,
data = maindata,
family = binomial(link = "logit")
)
I can specify clustering using the…

Reuben Long
- 71
- 6
0
votes
0 answers
Alpaca Market API generate graph of stock price
So I wrote the following code:
@bot.command()
async def check(context, ticker):
print(f"Checking the history of a stock")
# Make sure the symbol is upper case
if isinstance(ticker, str):
ticker = ticker.upper()
# Retrieve…

CoderMan
- 37
- 8