Comments (5)
Hi, not sure I understand what do you mean "cleaner"
with a single line of code you get different functionalities. you just change the name of the calling function.
what would like to be simpler than that?
from alpaca-trade-api-js.
Just one event that can do all types of data, differentiated by a type property.
from alpaca-trade-api-js.
these are different events with different structures. it doesn't make much sense to do all in one event
from alpaca-trade-api-js.
@AqilCont thanks for the suggestion. We love to discuss over the code, and always welcome your PR!
from alpaca-trade-api-js.
We already implemented this type of thing in the typescript version... Maybe take a look at it yourself?
from alpaca-trade-api-js.
Related Issues (20)
- [Question]: Max number of bars returned from getBarsV2 HOT 1
- [Bug]: getBarsV2 returns AlpacaBar objects without symbols HOT 1
- getSnapshot previous close price discrepancy[Bug]:
- [Question]: page_token is null instead of empty string HOT 2
- [Bug]: throw new Error('WebSocket is not open: readyState 0 (CONNECTING)'); HOT 3
- [Question]: What replaced Alpaca.getAggregates()? HOT 1
- [Question]: Is there a way to call the Announcement functions? HOT 1
- [Bug]: importing alpaca-trade-api in react HOT 2
- [Bug]: WebSocket is not open: readyState 0 (CONNECTING)'
- [Bug]: Update Node deps / NodeJS14 -> 18
- [Bug]: getLatestCryptoQuote is not a function HOT 1
- [Question]: Why does order.getAll not take all params? HOT 1
- [Bug]: DataV2 `pageLimit` not respected when `limit` is not specified HOT 1
- [Question]: How to Take Profit and set Stop Loss HOT 1
- [Bug]: Cannot open bracket order starting with sell stop
- [Bug]: GetNewsParams->includeContent should be include_content HOT 2
- [Bug]: Date precision
- Support intraday_reporting on getPortfolioHistory
- [Question]: Has getCryptoBars() been replaced by getLatestCryptoBars() ? HOT 1
- [Bug]: Status Code 422 for createOrder
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-trade-api-js.