Questions tagged [bybit]
58 questions
1
vote
1 answer
Error while sending trade commands to bybit testnet
I am using Alertatron to send manual alerts to bybit testnet exchange. I am getting the following error log. Please let me know what the issue is
======error start==
[v283, bybit, jothibybit, EOSUSD] ::: market(side=buy, amount=1);
Script market…

user1123931
- 479
- 1
- 8
- 24
0
votes
1 answer
Asynchronous requests with ccxt python library on Bybit
getting 403 error from Bybit on asynchronous ccxt request
tried without async - everything works
import ccxt.async_support as ccxt
import asyncio
async def main():
exchange = ccxt.bybit()
await exchange.load_markets()
symbol =…
0
votes
0 answers
I am trying to fetch position from my CCXT bybit account but there is nothing return
Here is my request. To try and fetch data from my account position
import ccxt
import time
import pandas as pd
import numpy as np
import datetime
from pprint import pprint
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns',…

johnny_ccf
- 1
- 1
0
votes
1 answer
bybit rest api set take profit order
i am trying to set take profit order with bybit rest api (testnet)
i followd the docs https://bybit-exchange.github.io/docs/v5/position/trading-stop
but i just cant get it to work
i try to changing :
position_idx to 0 1 2
all so change tpsl_mode…

user1246950
- 1,022
- 2
- 10
- 19
0
votes
0 answers
Unable to connect to Binance Websocket in c++
I am trying to connect to Binance Websocket in C++ using Boost library, but I keep getting errors like:
./main
Error: The WebSocket handshake was declined by the remote peer [boost.beast.websocket:20 at…

Aman
- 1
0
votes
0 answers
Trouble placing leveraged order using ccxt library with ByBit
I'm trying to place a market order using 75x leverage using futures derivates (ETH/USDT) on bybit with ccxt but it keeps producing the same error:
An error occurred while placing the order: bybit {"retCode":140007,"retMsg":"remark:order[49649307…

Mack
- 29
- 3
0
votes
1 answer
backtesting.py out of place trade entries
My program is trying to backtest a dataframe retrieved from public.bybit.com db
with two simple SMAs indicators
and the trades entries seem to be levitating above the close price/accurate entry price
here is the code:
import pandas as pd
from…

Shahar Brandman
- 73
- 7
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
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(
category="Linear",
symbol="MANAUSDT",
…

elya
- 1
- 1
0
votes
0 answers
PyBit API: Is there a way to place multiple SL orders after opening a position?
I was wondering if there is a way to order Multiple TP&SL after an order has been placed. There are no examples in the official documents and do not understand the instructions written there for these orders.
While placing orders in Binance API,…

B.erkam
- 1
- 1
0
votes
0 answers
how can i use ratchet websocket in php to connect bybit websocket and get real data in html side?
I use ratchet to connect bybit api to receive data as below and now I want to see json response on html side as response receives from bybit api ,
include "textalk/vendor/autoload.php";
$client = new…

Travis
- 33
- 3
0
votes
0 answers
How to create bybit future client object with ccxt package v3.0.40 Nodejs
I need place a future order in Bybit this is the client object - it create client for bybit spot cause when I place order it trades in Bybit spot-
Create Client -
export const getByBitFutureClient = async (
api_key: string,
api_secret: string
)…

Shashank Dubey
- 353
- 1
- 6
- 17
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
0
votes
1 answer
Generate OHLC Prices of BTCUSDT Bysbit Spot using Python
I cannot generate the prices data. I thought the Interval = 60 maybe can be 1 hour interval. But the main problem is I cannot generate any data at all
from pybit import spot
import pandas as pd
session = spot.HTTP(
…

JECT
- 1