Questions tagged [pybit]
4 questions
1
vote
0 answers
How can I place a market or limit spot order using pybit/bybit?
Here is some code that is working. However I cant confirm that the stop loss and take profits are being placed. I can see my buy order on bybit through the trading view, but nothing to indicate there is a tp or sl.
Could someone please provide some…

Jon Cianci
- 61
- 1
- 8
0
votes
1 answer
pybit.exceptions.FailedRequestError: Http status code is not 200. (ErrCode: 404) (ErrTime: 07:32:08)
I have an issue with Python's Pybit module. I'm trying to get my wallet balance but I get the following error:
pybit.exceptions.FailedRequestError: Http status code is not 200. (ErrCode: 404) (ErrTime: 07:32:08)
My code:
from pybit.unified_trading…

syrok
- 65
- 4
0
votes
1 answer
Updating TP/SL of an active position with pybit
Hello Stack Overflow community,
I hope you're all doing well and having a great day!
I'm having an issue with the pybit package in Python, and I was hoping that someone here might be able to help me out.
I am trying to edit the take profit and stop…

Beeflight31
- 227
- 7
0
votes
1 answer
InvalidRequestError when make order in pybit
I want to test some codes for placing short-open orders using pybit.
My code is as follows.
from pybit import *
session = usdt_perpetual.HTTP(endpoint = "https://api-testnet.bybit.com",
api_key = 'yyyyy',
…

Gilseung Ahn
- 2,598
- 1
- 4
- 11