praneshasp / crypto-trading-bot Goto Github PK
View Code? Open in Web Editor NEWThis is a customizable sentiment based cryptocurrency trading bot built using NodeJS
This is a customizable sentiment based cryptocurrency trading bot built using NodeJS
After coming across a positive sentiment tweet I get the following output
Results [
{
"text": "Bitcoin please do great things. Christmas is coming",
"sentiment": "POSITIVE",
"tweetId": "1465614838575546374"
}
]
but then get this error message
[ 'balanceData error', {} ]
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'
}
After coming across a Negative sentiment tweet I get this output
tweets [ { id: '1465624391555989508', text: 'bitcoin is bad' } ]
Results [
{
"text": "bitcoin is bad",
"sentiment": "NEGATIVE",
"tweetId": "1465624391555989508"
}
]
and then this error
[ 'balanceData error', {} ]
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: 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(). The promise rejected with the reason "#".] {
code: 'ERR_UNHANDLED_REJECTION'
and after finding a neutral sentiment tweet I get this output
tweets [
{
id: '1465623828592275456',
}
]
Results []
and this error
C:\Users\Owner\crypto-trading-bot-main\app.js:81
fs.writeFileSync("./tweetId.txt", tweets[tweets.length].tweetId);
^
TypeError: Cannot read properties of undefined (reading 'tweetId')
at startProcessing (C:\Users\Owner\crypto-trading-bot-main\app.js:81:61)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Timeout._onTimeout (C:\Users\Owner\crypto-trading-bot-main\app.js:89:5)
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.