Comments (2)
Hi @impredicative this is not a bug, it's expected since you're using the python built-in function dir()
which is returning a list of all valid attributes in an object.
Since snapshot
is an instance of a sub-class of a pydantic BaseModel
it inherits all the attributes of a standard BaseModel
, including the ones you listed. There's no code on alpaca-py to add any of those fields, and this is just related to the fact that we use pydantic for data validation.
I'm not sure what's your use case, but if you don't want to see those attributes, you simply don't need to use the dir()
function.
The representation of the snapshot object won't include them, and they're not included in the model_fields
as well.
from alpaca-py.
An IDE such as PyCharm visibly and graphically shows the distracting model attributes, which is why I opened this issue. I do not use dir
for development purposes.
from alpaca-py.
Related Issues (20)
- [Question]: How to understand the number of API calls I'm making?
- [Bug]: error during websocket communication: 4 validation errors for TradeUpdate HOT 8
- [Bug]: Paper API - quantity in opened position is not the same as requested in market order HOT 1
- Can you download documents? HOT 3
- [Bug]: Data WebSocket Error: Restarting Connection Due to Server Rejected WebSocket Connection (HTTP 404) HOT 7
- [Bug]: Websockets conflict HOT 2
- Fix link of docs in repo page HOT 1
- [Question]: How to get hourly historical data starting from 9:30am (NY time)? HOT 1
- light edit for docs
- [Bug]: Order stuck in pending_cancel
- [Bug]: potentially unnecessary parameter is required when submitting OCO orders
- [Bug]: PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`. HOT 2
- [Bug]: HOT 1
- [Bug]: Unable to execute ReplaceOrderRequest on a stop loss order HOT 1
- Support REST requests timeout, especially with StockHistoricalDataClient
- [Bug]: Duplicate Indicies HOT 3
- [Bug]: The option data stream should not have subscribe bar method
- APIError should make message more readily available to end users HOT 1
- Client should *not* un-paginate large results. Should return a `generator` that does this for you. HOT 1
- [Bug]: TradeAccount validation error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpaca-py.