OSO/OCO/BRACKET Orders

Good afternoon, morning, or evening. Whatever it happens to be.

I am trying to verify a few things regarding OSO/OCO orders.

When I run things out of a websocket I can get orders to Buy/Sell/Reverse, do almost everythign I want minus OCO/OSO/Bracket orders. It attempts to place them, fails on the bracket part, places the main orders and moves on as its coded to.

Ive tried various methods, including building a full websocket version(can not get trades to send at all in this version, buys, sells, or reverse. Assuming endpoint issues)

Must one be connected to websocket to get bracket orders to work?

ALL im trying to do is get a stop loss to be set after the order is set. then for that stop loss to autotrail at a preset amount defined based on a preset % of entry price, regardless of shorts or longs.

Is this doable? Also can someone verify proper endpoints for websocket use, and websocket OSO/OCO orders? Ive tried MANY variations ive found in forums here and in API documentation.

Thank you. All functions minus the stop/autotrail and really trying get this part functioning aswell.

All of this is doable.

Here’s a working example: