29 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
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
204
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
907
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
1
answer
376
views
Short using ccxt
i am trying to open and close short positions on ccxt Bybit using ccxt with python. I do not find any kind of information or examples about how to do this.
Does anyone know how to do that, or has any ...
-3
votes
1
answer
854
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:
&...
0
votes
2
answers
518
views
Is it a way to cancel tp/sl with BiByt API
In the ByBit API, you can easily create TP/SL: https://bybit-exchange.github.io/docs/v5/position/trading-stop
But can it be removed?
I've come to the problems that there can only be 20 TP/SL a time, ...
-4
votes
1
answer
7k
views
params error: Qty invalid (ErrCode: 10001) being returned by ByBit API
Order details being submitted:
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=...
1
vote
1
answer
2k
views
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:...
1
vote
1
answer
1k
views
Why am I getting an error message about invalid symbols when I try to place an order on Bybit derivatives?
I am trying to place an order on Bybit usdt perpetual but I can't succeed.
This is my script.
client = HTTP(testnet = False, api_key=user_key, api_secret=secret_key)
print(client.place_order(
...
0
votes
1
answer
1k
views
Creating trading robot with Python and ByBit api
I am very new into programming with Python and running web applications,so wanted to make a little learn roadmap for my project with next requirements :
1.This bot should monitor my email box for ...
0
votes
1
answer
2k
views
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",
...