Examples for bracket orders and market subscriptions

Hi! I’ve read through the docs but I’m struggling to understand how to do 3 things via the Trade API and websockets:

  1. Place a bracket order with a limit buy, limit sell, and stop loss
  2. Subscribe to market data for a symbol (“NQ”, for example) at different timeframes (1min, 5min, 15min, 1hr, 4hr, 1day, 1week). Particularly, the high, low, open and close prices.
  3. How to send a “GET” request for the same data as #2 in a given time range.

Could someone share an example of how you might accomplish this?

Can you take a look at these examples, they should help.