I've created an Insomnia workspace to make it easier to debug your stock trading code and learn the Alpaca API. You can read about how here:
https://medium.com/automation-generation/using-alpacas-stock...The actual workspace JSON for you to import into Insomnia can be found here: https://github.com/alpacahq/insomnia-workspace