Giter Site home page Giter Site logo

crypto-trading-bot's People

Contributors

praneshasp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

707plushka707

crypto-trading-bot's Issues

Errors after finding relevant tweet

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.