Comments (3)
Actually, I wrote this library for myself. However, I think your suggestion is very good and I am glad that this library can also be helpful to you.
The first suggestion I think I can make some modifications at an appropriate time.
The second suggestion needs to consider the compromise between ease of use and user customization, as I don't want to always set nRequestID
in the logic.
At present, there is very little additional logic in this library, which is also intended to simplify the use.
from napi-ctp.
Hi @southwhale, now isLast
has been passed as a parameter in the object to the callback function.
There may be more confusion and complexity between user specified nRequestID
and automatic generation of nRequestID
, as this is a transaction interface and we do not want to lose money due to program negligence.
Considering that JavaScript is a very flexible language, can multiple account requirements be implemented using closures or objects.
If there is no better reason, I may not support users specifying nRequestID
.
from napi-ctp.
I agree with your point on nRequestID
. Thank you.
from napi-ctp.
Related Issues (6)
- md.reqUserLogin cause an error HOT 5
- Error: throw "dyld[42087]: missing symbol called" in mac os. HOT 8
- It seems ReqOrderInsert will not trigger `rsp-order-insert` and `err-rtn-order-insert` events HOT 2
- Throw an error when call td.reqUserLogin(...) on Mac(Sonoma 14.1.1) HOT 46
- Throw error when calling `reqQryTrade` HOT 1
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 napi-ctp.