Plotting ccxt graph in python

I want to plot a live graph in python using matplotlib and ccxt can anyone guide me through it? I have already plotted a live bitcoin graph but i am not able to plot all the graphs by one single...

OKEX withdraw error 10006

OS: CentOS Programming Language version: PHP 5.6.35 CCXT version: 1.13.49 Exchange: OKEX Method: withdraw I am getting error_code 10006 from the OKEX API when attempting to make a withdrawal. Is...

How to get historical data with one minute interval?

I need to get historical trading data with one minute interval. I'm trying to get it using ccxt. But I'm getting several cycling values. What did I do wrong? import ccxt import pandas as pd import...

How to write console.log to a file instead

Now I show the information using: console.log (kraken.id, markets) However, I want to write all the information that goes to the console to a file instead. How can that be done by completing...

How to place percentage orders with Binance API and Python-CCXT?

I'm playing with Binance API to make my trading bot with Python 3.6. and CCXT library (here you find the docs ). One very useful thing they have in their site is the capability to place orders for...

How to make a binance futures order with ccxt in python?

How can I place a market order in ccxt for binance futures? Trading on binance futures with ccxt is already implemented https://github.com/ccxt/ccxt/pull/5907 In this post they suggest to use...

CCXT / python - custom requests?

Is there any possibility of making custom GET or POST request with the CCXT API? I can't find some of them in the API requests list, for example, GET /api/account/v3/asset-valuation or POST...

Async loop without aiohttp

I found library with operation on exchanges, i need make async or another method like async. My code: import ccxt binance = ccxt.binance() for pair in binance.load_markets(): // example: pair...

Could not build wheels since package wheel is not installed

I am having this problem with wheels: 'Could not build wheels for ..., since package 'wheel' is not installed.' with several packages and I have no idea what to do since - as you can see in the...

Unable to set the STOP-LOSS limit order using Binance Python API

I am attempting to create a LONG TRADE that will contain a BUY ORDER and a STOP-LOSS using Python asyncio, ccxt API (which is calling the Binance API for the Binance Crypto Exchange). First I...

ccxt.base.errors.InvalidOrder: binance Order would trigger immediately

I am using Python, Binance, and CCXT API libraries to create a BUY order on Binance. I am getting an error when executing the code below. ERROR: ccxt.base.errors.InvalidOrder: binance Order would...

Python binance fetchMyTrades gives only 3 month of personal trades, so how do one iterates through results?

I am trying to get my trades earlier than 3 months I do it like this: #I use ccxt library result = ccxt_binance.fetchMyTrades('BTC/USDT', since = 1588669559517) But still get the trades only...

how to tell ccxt to use binance / bybit testnet

i wrote a small script to download ohlcv data from binance or bybit with ccxt. I want to get candle data from the testnet as well as the main net. I looked at ccxt code and there are urls for both...

Binance api futures error: {"code":-2015,"msg":"Invalid API-key} using private_post_order_oco (but ID works with everything else)

I am having a problem using the Binance Python API. I am using Python3.7 on Ubuntu Basically, when making the call below, I get an error: {"code":-2015,"msg":"Invalid API-key, The thing is that...

Constant errors when installing ccxt module in python

New to python but not to coding and just getting to grips with installing modules. Seem to get pretty far when installing ccxt with py -m pip install ccxt except it keeps throwing an error: ERROR:...

Close position Binance Futures with ccxt

I'm trying to close a position on Binance Futures using ccxt ccxt-1.39.93, Python 3. # fetch position position = binance.fetch_balance()['info']['positions'] pos = [p for p in position if...

Failed to run TA-lib Python on Heroku

I want to deploy an app using Heroku but it did not manage to build it. See my build logs under this message. It looks that my problem is that it cannot load/install Ta-Lib (package that I want to...

CCXT Binance Future Order

I don't know Python very well and I'm trying to make a bot for Binance Futures with Python. And I encounter this error: client.futures_create_order()( TypeError: futures_create_order() missing 1...

Unable to place a trailing stop loss order with ccxt

I'm running an algorithm to predict prices and enter trades for me using the ccxt API in python. I wish to execute a trailing stop loss order and I enter such a long position like this: exchange =...

AWS chalice local works but not chalice deploy

I am pretty new to coding and aws chalice. I tried writing a code that gets messages from trading-view and executes orders depending on the signals. I tested the code locally and everything...

How to set a Take-Profit limit order with Binance

A sample code of mine: import ccxt binance = ccxt.binance({ 'enableRateLimit': True, 'apiKey': '****', 'secret': '****', 'options': {'defaultType':...

Binance ccxt fetch ohlcv exceeding 1000 limit

Trying to create a loop that will get all 5m interval ohlcv data for coins in pair_list between start and date (3 months) Based on some discussions and snippets I've come up with the following,...

How to use fetchBalance() parameters with ccxt

I'm new to ccxt and I'm trying to fetch my balance in USDT. This information is included in what the following code returns to me: (async () => { console.log (await exchange.fetchBalance...

Can I get original exchange response from CCXT API call?

Is there a possibility to get the original response from the exchange (e.g. Binance)? Since CCXT offers the possibility to overrride API params, I thought it might be possible to get the original...

Python crypto buy-sell bot

This is a simple trading bot working with gate.io api. It does almost what we want but 2 features are missing. 1-When I enter the token name in the terminal, it has to automatically buy it 3% more...

CCXT okex5 swap contracts

I am trying to create a perpetual limit order using ccxt on okex exchange version 5. The API is successfully placing orders(both limit and market) on spot exchange but not on perpetual...

Is there a Binance API endpoint to close all positions?

Is there a specific binance futures API endpoint with which you automatically close all positions? There is such an option in the GUI. Right now I can only imagine getting amounts of all positions...

CCXT binance fetch_ohlcv function

I wanted to get crypto market data from binance api with CCXT using the fetch_ohlcv(), but received error when running the code below. I have tried running without the since keyword and it worked...

create market order on FTX using CCXT with SL and TP using python

Does anyone have an example of how to create a market order with take profit and stop loss? I have been through the docs and because this is the first time i've done anything like this I don't...

How to make a Kucoin futures order with ccxt in python?

The following code work binance futures using ccxt. What is the correct code/configuration for kucoin futures? import ccxt import pandas as pd binance = ccxt.binance() binance.options =...