My API was hacked

I run 3 bots for my different 3 binance account.
one of my accounts with highest amount is selling when the price drop.
So, I have stoped my program but it still selling in market.
Finally, I have to disable my API permission.
I used Python-binance library.
Is it due to Library, Hacker or binance itself?
Please suggest how to prevent not to happen like that again.

Hey,
Could you provide more details about the order you placed? Did you set any specific parameters? (e.g: TAKE_PROFIT, STOP…)

Thanks for your answer. I did not set any parameters for TAKE_PROFIT,
My code here,
#buy order
buy_order = self.client.futures_coin_create_order(
symbol=self.symbol,
side=‘BUY’,
type=‘LIMIT’,
timeInForce=‘GTC’,
quantity=qty,
price=price
)
#Sell order
sell_order = self.client.futures_coin_create_order(
symbol=self.symbol,
side=‘SELL’,
type=‘LIMIT’,
timeInForce=‘GTC’,
quantity=qty,
price=price
)
#MarketOrder
order = self.client.futures_coin_create_order(
symbol=self.symbol,
side=‘BUY’,
type=‘MARKET’,
quantity=self.initial_buying_qty
)
I run the same code for 3 different accounts.
The other 2 accounts (small size) are Ok.
Only this account (big size) happen this error.
“sell when the price drop.”
The code do not give any sell command when the price drop.

I suspect python-binance library, or hacker.