sreenivasdoosa / sdoosa-algo-trade-app Goto Github PK
View Code? Open in Web Editor NEWFully automated trading application with multiple brokers support using Node JS
License: GNU General Public License v3.0
Fully automated trading application with multiple brokers support using Node JS
License: GNU General Public License v3.0
Hi Sreenivas, Kindly add support for fyers bokers api
The Broker/Holidays/Server config files path are not found during the compilation -
PS I:\AlgoTrade\deployment\sdoosa-algo-trade-python> & "C:/Program Files/Python311/python.exe" i:/AlgoTrade/deployment/sdoosa-algo-trade-python/src/main.py
Traceback (most recent call last):
File "i:\AlgoTrade\deployment\sdoosa-algo-trade-python\src\main.py", line 26, in
serverConfig = getServerConfig()
^^^^^^^^^^^^^^^^^
File "i:\AlgoTrade\deployment\sdoosa-algo-trade-python\src\config\Config.py", line 5, in getServerConfig
with open('../config/server.json', 'r') as server:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../config/server.json'
Hi ,
I have configured zerodha API , Secret Key in config .
Client side : login as user and click on " signin Zerodha" , address bar changes with
request_token=MyZnXrp3ryeMzDTsq1jgC3JN3ZbEiFMw&action=login&status=success
but "signin zerodha" is still active and
Login Status: | Not logged in |
---|
Log file ๐
2021-02-09 11:55:18.382 | INFO | ActiveTrades: broker = zerodha
2021-02-09 11:55:20.960 | INFO | Broker Login: broker = zerodha
2021-02-09 11:55:20.964 | INFO | login url => https://kite.trade/connect/login?api_key=e8pb1o7nvowe4eln&v=3
2021-02-09 11:55:21.933 | INFO | Broker LoginCheck: broker = zerodha
2021-02-09 11:55:21.937 | INFO | AlgoStatus: broker = zerodha
2021-02-09 11:55:21.941 | INFO | ActiveTrades: broker = zerodha
2021-02-09 11:55:21.947 | INFO | CompltedTrades: broker = zerodha
2021-02-09 11:55:49.415 | INFO | Broker Login: broker = zerodha
2021-02-09 11:55:49.417 | INFO | login url => https://kite.trade/connect/login?api_key=e8pb1o7nvowe4eln&v=3
2021-02-09 11:55:50.856 | INFO | Broker LoginCheck: broker = zerodha
2021-02-09 11:55:50.859 | INFO | AlgoStatus: broker = zerodha
2021-02-09 11:55:50.862 | INFO | ActiveTrades: broker = zerodha
2021-02-09 11:55:50.867 | INFO | CompltedTrades: broker = zerodha
Please help if i am doing any wrong
Can we have support for other brokers?. If yes, how it is difficult to add support for other brokers (provided api support by brokers)?
Could you also consider supporting Samco API which is free?
Also, Samco historical data is only for 1 min so is it possible to convert or resample it to 3min, 5min, 10min, 15 min, 30min, 1H, 2H, 4H
Hi guys!
Node js 6.0 verstion for algo trad app not working if available that download was not installing and not working which verstion can i use instead of node js 6.0 ?
FYI..
I am using Zerodha API, Login in everything works file and stocks scanned with VWAP are saved sucessfully in trade_signals.json. but trade signals are not fired.
when i run the code , trade_signals.json file have 2 stocks.
But they are not triggered and does not show in trades.json file.
.below is the only error i got in log file
INFO | VWAP: BIOCON: prev day data = {"date":"2021-02-08T18:30:00.000Z","open":409,"high":409.95,"low":402.8,"close":404.8,"volume":3195358,"timestamp":"2021-02-08T18:30:00.000Z"}
(node:4900) UnhandledPromiseRejectionWarning: Error: Callback was already called.
at D:\WORK\FIRETICK\node_modules\async\dist\async.js:966:32
at D:\WORK\FIRETICK\node_modules\async\dist\async.js:3885:13
at D:\WORK\FIRETICK\dist\server\strategies\BaseStrategy.js:470:15
at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:4900) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4900) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Kindly help me to resolve this issue.
i followed the instruction but build is failing. please help.
C:\algotrade\sdoosa-algo-trade-app-master\node_modules\websocket>if not defined npm_config_node_gyp (node "C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
bufferutil.cc
win_delay_load_hook.cc
..\src\bufferutil.cc(34): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\suni
l\algotrade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(34): error C2661: 'Nan::Set': no overloaded function takes 2 arguments [C:\algotrade\sdoosa-
algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(50): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(57): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(68): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(70): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(89): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(90): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(92): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algotr
ade\sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(93): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:\algotrade
sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
..\src\bufferutil.cc(94): error C2660: 'v8::Value::Int32Value': function does not take 0 arguments [C:\algotrade
sdoosa-algo-trade-app-master\node_modules\websocket\build\bufferutil.vcxproj]
validation.cc
win_delay_load_hook.cc
..\src\validation.cc(114): error C2660: 'v8::FunctionTemplate::GetFunction': function does not take 0 arguments [C:\sun
il\algotrade\sdoosa-algo-trade-app-master\node_modules\websocket\build\validation.vcxproj]
..\src\validation.cc(114): error C2661: 'Nan::Set': no overloaded function takes 2 arguments [C:\algotrade\sdoosa
-algo-trade-app-master\node_modules\websocket\build\validation.vcxproj]
..\src\validation.cc(133): error C2661: 'v8::Value::ToObject': no overloaded function takes 0 arguments [C:\algot
rade\sdoosa-algo-trade-app-master\node_modules\websocket\build\validation.vcxproj]
[email protected] postinstall C:\algotrade\sdoosa-algo-trade-app-master\node_modules\nodemon
node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1150 packages from 683 contributors and audited 1219 packages in 379.868s
found 761 vulnerabilities (734 low, 8 moderate, 19 high)
run npm audit fix
to fix them, or npm audit
for details
Hello,
First of all, thanks a ton for this amazing framework.
I had node 12 version in my laptop and I did not want to downgrade to Node 11. I found out the code node not working on higher version of Node is due to Gulp using an older version which is not compatible with Node 12 or higher.
The fix for this is here in this link https://ourcodeworld.com/articles/read/1188/how-to-solve-gulp-exception-reference-error-primordials-is-not-defined-error .
I tried and it works fine for me. I hope this helps others too.
Praneeth
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.