220 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
249
views
AttributeError: module 'cryptography.hazmat.bindings._rust.openssl' has no attribute 'hashes' when using ccxt with Binance API
I'm developing a Flask web app that uses the ccxt library to connect to an API. When trying to run my application, I'm encountering this error:
AttributeError: module 'cryptography.hazmat.bindings....
1
vote
0
answers
174
views
How to initiate Ping/Pong in CCXT websockets under Node
I'm working on a CCXT based app server on Node. I want to measure websocket connection latency between Node and remote exchanges. For this purpose I'd like to initiate a ping right after websocket ...
0
votes
1
answer
312
views
How to close the position in the hedge mode of the Bybit
My code works in hedge mode. That is, long and short positions exist simultaneously in one account. I want to close one position, but I don't know what to do. The 'reduceOnly' parameter didn't work.
...
0
votes
0
answers
439
views
Can't install ccxt package with pip
I tried to install it via pip install ccxt on Windows 11, but I got the following error:
Collecting ccxt
Downloading ccxt-4.4.40-py2.py3-none-any.whl.metadata (116 kB)
Requirement already satisfied: ...
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
0
answers
47
views
Fatal error Uncaught ccxt PermissionDenied
I Try to write a trader bot with CCXT library with PHP Language.
First attach
require 'vendor/autoload.php';
Then
use ccxt\lbank;
Continue I create an object Lbank in CCXT By follow code :
...
0
votes
1
answer
212
views
StochRSI Calculation in Python Produces Different Results Than Kraken Chart
I'm trying to calculate the StochRSI indicator for cryptocurrency market analysis, with the goal of integrating it into a trading bot to make trade decisions. I'm retrieving market data from Kraken ...
1
vote
0
answers
178
views
Why ccxt load_markets().keys() differ from fetch_tickers()?
I expect the code below to produce the same numbers (2542/2542), but it actually prints (2542/430). Why is this happening? It’s particularly strange because the markets from load_markets are currently ...
0
votes
0
answers
1k
views
Python CCXT Library: Simple Buy/Sell Function In MEXC
I'm doing a bot that gives order to buy or sell coins (in MEXC), but I have a problem with giving orders.
I tried this code:
import ccxt
api_key = KEY
secret = SECRET
exchange = ccxt.mexc({
'...
1
vote
0
answers
423
views
ccxt open position issue
I wrote below code for auto trading in future(open position calculate tp and sp) by ccxt library in python but I'm faced with this error:
An error occurred: bingx {"code":100400,"msg&...
2
votes
1
answer
2k
views
Bitget CCXT partially close position
I have a strange issue trading on Bitget with CCXT.
I'm developing a python bot that automates some signals from a telegram group from my laptop (win 11, using VS), and the ting is that I have the ...
-1
votes
1
answer
664
views
What does 'precision' exactly mean in the binance api?
I am using python ccxt to place a sell order on binance.
order = exchange.create_order(symbol, 'market', 'sell', amount)
I have fetched the required precision, and got 5.
markets = exchange....
0
votes
0
answers
425
views
Unable to connect to any API via CCXT in VSC - keep returning an unauthorized/401 client error. What is wrong?
Here is what the terminal tells me with every failed connection (I've tried Kraken Futures, Phemex Testnet, Coinbase Demo account):
(cryptobot) PS C:\Users\jcazi\OneDrive\Desktop\Algotrading> & ...
0
votes
1
answer
381
views
CCXT - load markets for exchange OneTrading
I am trying to use python library ccxt to retrieve public data (e.g. available markets) from crypto exchange OneTrading.
I created an API key with read-permissions.
Somehow, ccxt retrieves an empty ...
0
votes
0
answers
92
views
async for loop with try catch exception
I have some code, to fetch prices from several markets:
def getprices(exchange):
inst = getattr(ccxt, exchange)()
prices = inst.fetch_ticker('symbol')
data = {f'{exchange}': prices}
...