Coder Social home page Coder Social logo

Comments (6)

DavideViolante avatar DavideViolante commented on August 24, 2024 1

It's working correctly to me, just tested. Please try with this code and let me know what it prints:

const { investing } = require('investing-com-api')

async function main () {
  try {
    const response = await investing('currencies/eur-usd')
    console.log(response)
  } catch (err) {
    console.error(err)
  }
}

main()

from investing-com-api.

DavideViolante avatar DavideViolante commented on August 24, 2024 1

I don't know, I think your code is not the same as the one I posted above.
Please give me your complete code and tell me your Node.js version (node --version), npm version (npm --version) and investing-com-api version (check package.json).

You can see the package working correctly here if you paste the code I posted above and clicking Run. Screenshot
.

from investing-com-api.

lisasu-g avatar lisasu-g commented on August 24, 2024

Firstly, I want to say thank you to you. The output information is below.

nvesting-node-test AlexLee$ node ./main.js 
No response.data.candles found
undefined

from investing-com-api.

lisasu-g avatar lisasu-g commented on August 24, 2024

Thank you for your reply.
I push everything to the GitHub repo(https://github.com/djangoIee/investing-com-api-demo).
Is there any chance that you could help me to check the code?

from investing-com-api.

lisasu-g avatar lisasu-g commented on August 24, 2024

I don't know, I think your code is not the same as the one I posted above.
Please give me your complete code and tell me your Node.js version (node --version), npm version (npm --version) and investing-com-api version (check package.json).

You can see the package working correctly here if you paste the code I posted above and clicking Run. Screenshot
.

node --version
v10.23.0

npm --version
6.14.8

from investing-com-api.

DavideViolante avatar DavideViolante commented on August 24, 2024

Try to update to latest node version (v14) and post here you complete code, if different from above.

from investing-com-api.

Related Issues (18)

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.