Questions tagged [bybit]
58 questions
0
votes
1 answer
Python - Iterate thourhg all available pages of a API connection
I am currently trying to develop my own "automated" trading journal. I get the data from the bybit api (https://bybit-exchange.github.io/docs/inverse/#t-introduction) I use the pybit (https://github.com/verata-veritatis/pybit) lib to connect to the…

Mark Müller
- 13
- 2
0
votes
1 answer
Failed to use websocket : websocket._exceptions.WebSocketConnectionClosedException: socket is already closed
Thank you for checking in! I've got a question about the websocket connection.
Here's a websocket class I use to subscribe to an exchange's websocket, where the connection is established in self.connectWS_public() function.
from datetime import…

Ricky Cheng
- 1
- 1
0
votes
1 answer
Not able to update SL, TP using pybit sdk
I am trying to change the Stop_loss and take_profit for my open order. I am using this method to update my SL. When I run the code, I get this error:
2022-06-04:14:39:12,782 DEBUG [connectionpool.py:465] https://api-testnet.bybit.com:443 "POST…

Vaibhav Dhingra
- 11
- 4
0
votes
2 answers
ByBit Api. Open Active Order. Return "empty param of timestamp". Libcurl c++
Please help!!!! Is there a working example of opening an order in C++
Constantly sending a request to open an order POST…

Alexandr
- 1
- 1
0
votes
1 answer
Bybit - Place Simple Order... (php)
I am using the following 'suggested' code to post a test order to Bybit.
(https://github.com/bybit-exchange/api-usage-examples/blob/master/api_demo/futures/Encryption.php)

metokitt
- 53
- 7
0
votes
1 answer
How to detect changed dictionary value?
The dictionary has 3 keys . The keys are price,size,side . The data comes from websocket. How can I detect same price same side but changed size ?
if price and side is same I want size changes.
how can I do that ?
from BybitWebsocket import…

Ali Sarikaya
- 5
- 4
0
votes
2 answers
Bybit API - How do I calculate qty in USDT Perpetual with leverage
I'm using bybit-api to create a conditional order but don't know how do I calculate quantity. Is it based on leveraged amount or original?
for example
I have balance of 50 USDT and want to use 100% per trade with following conditions.
BTC at price…

Rohit
- 1
- 2
-1
votes
1 answer
How do i solve the qty problem i have on bybit api?
order_id=None symbol='BTCUSDT' order_type='Limit' side='Buy' price=26050.0 qty=0.002876 take_profit=26080.0 stop_loss=26040.0 time_in_force='GTC' reduce_only=None leverage=2 percentage=100
params error: Qty invalid (ErrCode: 10001) (ErrTime:…
-1
votes
1 answer
Use the Bybit API to do a derivatives trade on BTC/USDT
While running my code I keep getting the same error, qty invalid but I'm giving it the minimum required value and got enough balance on the account as you can see.
Already checked out a lot of issues on google but couldn't find this specific…

Daan
- 1
-1
votes
1 answer
Bybit API - List of close PnL inside Google Sheets
I am attempting to run a function from Google Sheets to get the list of closed PNL orders from the Bybit Exchange.
I keep getting a signature error. Not sure how to resolve this.
function bybitpnl()
{
var timeStamp = ''+ new Date().getTime();
…

Dustin Parris
- 11
- 1
-2
votes
1 answer
Increase performace in a private trading terminal
I am in the process of building my own trading terminal with various functions for a school project where speed is important..
I have two functions that I would like to optimize. But don't know how to proceed
from here.
function1
const…

Snuskbetty
- 11
- 2
-3
votes
1 answer
get list of all contract on bybit
i want to fetch all future contract on bybit
so i am using ccxt i use exchange.loadmarkets()
which give data
data = {'BTC/USDT': {'id': 'BTCUSDT',
'symbol': 'BTC/USDT'},
'ETH/USDT': {'id': 'ETHUSDT',
'symbol': 'ETH/USDT'},
'XRP/USDT': {'id':…

SARVAGYA
- 3
- 3