Bracket Order thru Pi

Can I place bracket order in Pi thru python program and if yes, how? I would also like to place trailing stoploss.

Bracket order can not be placed through Pi bridge But, you can write trailing stop loss logic in python, by using modify function in pi bridge