Can’t trade using the API

The Create Order API doesn’t work for me-it would generate an error message more than a thousand lines long:

My language is JS. What is going wrong here??

whats the error that you get

@Jason_Gu There may be other issues, but the first one I see is your URL is incorrect. You are using

 https://paper-api.alpaca.markets/v2/v2/orders

Notice there are two v2 . It should be

 https://paper-api.alpaca.markets/v2/orders

Try that.

1 Like

@Dan_Whitnable_Alpaca I don’t see a place where you edit the URL. Is there a “node_modules” thing? Is it in there?

@Dan_Whitnable_Alpaca

I don’t know what’s the issue here.