Error when using Schopenhauer API wrapper with NodeJS
IPS Temp Admin
Joined 06/10/22 15:40
Commodity Markets: Forex, Bonds, US Gold, Silver, Iron Ore,Copper Lithium,Nickel, Crude Oil, Natural Gas. Elliott Wave
By tradinglounge · PostedCommodity Markets: Forex, Bonds, US Gold, Silver, Iron Ore,Copper Lithium,Nickel, Crude Oil, Natural Gas. Elliott Wave Commodities Market Summary: The USD DXY USDJPY are heading higher into Wave iii) and iv) corrections so are the FX pairs and so are GDX and US Spot Gold. So, there are no larger trends, just corrections. Trading Strategies: No strategies as markets are in small corrective patterns. Video Chapters 00:00 US Gov Bonds 10 Yr Yields 00:44 US Dollar Index DXY USDJPY, EURUSD, AUDUSD 05:50 US Spot Gold / GDX ETF 08:41 US Spot Silver 11:20 US Copper / Lithium / Nickel / Iron Ore 19:01 Crude Oil 21:21 Natural Gas 27:11 End Analyst Peter Mathers TradingLounge™ Australian Financial Services Licence - AFSL 317817 Source: tradinglounge com Access Trial here... buy 1 month Get 3 months
Hi @AndaIG, Please could the [LOUP] Innovator Deepwater Frontier Tech ETF be listed and made available for the ISA tax wrapper, pretty please? Many thanks, Sam
Look ahead to 31/5/23: China PMI; France GDP; Germany CPI Economic data is key on Wednesday. It starts in Japan with retail sales, followed by Chinese PMI. Jeremy Naylor | Analyst, London | Publication date: Tuesday 30 May 2023 IGTV’s Jeremy Naylor looks at the chances that the Chinese yuan will weaken further as it becomes more and more obvious that the recovery in China is further away than initially expected. Then in the eurozone we’re looking at the CAC 40 and DAX as growth and inflation data is released. The only corporate on the schedule is from stationers, WH Smith.
I am new to IG API so I may be making an elementary mistake.
I want to use the IG API interface into a Node-js application. I have tested my login and api key with the Streaming Companion and the API Companion and they work fine.
I have downloaded the Schopenhauer wrapper from GitHub and am trying out the example code given on the GitHub page, which is:
I tried the code verbatim with my login details and API key but this threw the error "await is invalid outside an async function", so I wrapped that code into a function declared as async with a call to the function like this:
Now it seems to run but throws this error:
So now I am unable to move forward. Any ideas would be much appreciated.Edited by JohnRC
Link to comment
2 answers to this question
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now