beatzxbt / bybit-smm

bybit simple market maker
MIT License
398 stars 125 forks source link

Add support for takeProfit #7

Closed LevBeta closed 8 months ago

LevBeta commented 9 months ago

Add clear function to BaseOrderBook Add optional takeprofit argument for amend/limit payload functions Add .DS_Store to .gitignore

LevBeta commented 9 months ago

Noticed that

init_order = await BybitOrder(self.pdss).order_limit(init_order_params, tp=exit_price)

is actually sending tp as a additional argument of order_limit, last commit adds the support to add tp into init_order_params

(Do not merge)

beatzxbt commented 8 months ago

i've added the correct fixes, i'd forgotten to move them from the old stink bidder repo

as for the OB clear changes, i can merge this if you remove the order types changes which would override mine

LevBeta commented 8 months ago

It's better to not use this one as a base, i will add a new pr soon for that