62 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
229
views
Why does bybit api return an empty list after requesting trade history?
I am trying to get my trade history from the Bybit api V5, but it keeps returning an empty list although getting my wallet balance works.
I wrote this code below and although the "...
1
vote
0
answers
295
views
How to reliably get full trading history in Bybit?
Bybit allows to download full trading history for past days in one file.
Also they have /v5/market/recent-trade API endpoint providing us with recent trades occurred between some not very distant ...
0
votes
0
answers
93
views
Error getting data with fetch in web worker
I'm trying to get data in the order of bybit -> cloudflare worker -> google scripts. I got the value from bybit to the worker via API, but when I get the value from the worker via google scripts,...
-1
votes
1
answer
82
views
Updating stop-loss of an active short-position
Im using the Pybit module to trade on Bybit - and my problem is updating the trailing stop-loss of short-positions. When i want to update using the set_trading_stop-call, i get an 34040 errorcode and ...
0
votes
1
answer
1k
views
pybit 'ab not enough for new order' appears although I have funds on my unified trading wallet
I'm trying to open USDT-M Futures position on my Bybit account but getting error:
pybit.exceptions.InvalidRequestError: ab not enough for new order (ErrCode: 110007) (ErrTime: 07:15:38).
Request → ...
0
votes
1
answer
203
views
Any way to use proxy in pybit?
I want to use proxy server before sending request directly to py-bit. I am using
pybit.unified_trading --> HTTP and it doesn’t come with any such params to connect with proxy.
This is my ...
0
votes
1
answer
1k
views
Bybit ccxt Futures, demo and spot trading
I want to use ccxt to open and close futures, spot orders.
when I was using this object to open trades on futures, it was opening it on spot.
bybit = ccxt.bybit({
"apiKey": setting['API']...
1
vote
1
answer
903
views
Bybit - demo WS create order
I am trying to place order through WebSocket on Bybit DEMO.
I get OK, but when I am trying to send order it returns:
"retMsg": "API key is invalid."
even though the auth was OK.
...
0
votes
1
answer
148
views
How to incorporate the indicator to generate signals?
indicators.py:
import pandas as pd
import numpy as np
import ta
def lsma(data, period=14, regression=True):
size = len(data)
out = np.full(size, np.nan)
w = np.arange(1, period + 1, dtype=...
-3
votes
1
answer
3k
views
ByBit API: How to get info on all positions?
I cannot use the get_positions() function to get information about all positions. I can only get information about each individual position. How can I get info of all existing positions?
session = ...
0
votes
0
answers
651
views
How to access Bybit API with google apps script
I'm trying to get any response from the Bybit API using google apps script. I have been able to get response from the API when using simple nodeJS code. But when converting the syntax to google apps ...
0
votes
1
answer
1k
views
Problem with bybit websocket connection on VM
I'm using the simplest example to connect:
`from pybit.unified_trading import WebSocket
from time import sleep
ws = WebSocket(
testnet=True,
channel_type="linear",
)
def handle_message(...
0
votes
0
answers
389
views
pybit error " Http status code is not 200. " when running session.query_kline
I have the code that I was using before to export the kline data from bybit.
for i in range(len(pairName)):
coinKline = session.query_kline(symbol=pairName[i], ...
-3
votes
1
answer
850
views
ByBit Api: how can i get all tokens tp/sl orders
I know that there is an option to get an order book in the api, but that's not what I'm looking for.
I need to get the exact number of all take profit and stop loss through the bybit api
Is it ...
1
vote
1
answer
1k
views
How do I fix "retCode":170003 error using ccxt and bybit?
I am trying to build a bot that buys btc/usdt for 50 usdt on bybit using ccxt and python. I also have a stoploss at 0.33% and a take profit at 0.45%. But when I try to run it, I get this message:
&...