Comments (4)
I met the same problem
from mexc-api-sdk.
@bachapk I have the same problem, can you please send the syntax you're using for limit orders? thx
from mexc-api-sdk.
You should validate first, whether market order is available for the used currency pair, using EP https://api.mexc.com/api/v3/exchangeInfo
.
Example response
{
"symbol": "NMRETH",
"status": "ENABLED",
"baseAsset": "NMR",
"baseAssetPrecision": 2,
"quoteAsset": "ETH",
"quotePrecision": 6,
"quoteAssetPrecision": 6,
"baseCommissionPrecision": 2,
"quoteCommissionPrecision": 6,
"orderTypes": [
"LIMIT",
"LIMIT_MAKER"
],
"quoteOrderQtyMarketAllowed": false,
"isSpotTradingAllowed": true,
"isMarginTradingAllowed": false,
"quoteAmountPrecision": "0.001000000000000000",
"baseSizePrecision": "0.01",
"permissions": [
"SPOT",
"MARGIN"
],
"filters": [],
"maxQuoteAmount": "1000.000000000000000000",
"makerCommission": "0",
"takerCommission": "0.001",
"quoteAmountPrecisionMarket": "0.001000000000000000",
"maxQuoteAmountMarket": "1000.000000000000000000"
},
from mexc-api-sdk.
I've also got the same problem and I've upgraded to the newest version through github.
Traceback (most recent call last):
File "/path/to/main.py", line XX, in <module>
main()
File "/path/to/main.py", line XX, in main
exchange_instance.buy()
File "/path/to/mexcexchange.py", line XX, in buy
res = self.client.new_order(symbol=self.coin_name, side="BUY", order_type="MARKET", options={"quoteOrderQty": self.funds})
File "/path/to/mexc_sdk/__init__.py", line XXX, in new_order
return typing.cast(typing.Any, jsii.invoke(self, "newOrder", [symbol, side, order_type, options]))
File "/path/to/jsii/_kernel/__init__.py", line XXX, in wrapped
return _recursize_dereference(kernel, fn(kernel, *args, **kwargs))
File "/path/to/jsii/_kernel/__init__.py", line XXX, in invoke
response = self.provider.invoke(
File "/path/to/jsii/_kernel/providers/process.py", line XXX, in invoke
return self._process.send(request, InvokeResponse)
File "/path/to/jsii/_kernel/providers/process.py", line XXX, in send
raise RuntimeError(resp.error) from JavaScriptError(resp.stack)
RuntimeError: Error: Server responded to [API_ENDPOINT] with status code 400:
{"msg":"api market order is disabled","code":30019}
from mexc-api-sdk.
Related Issues (20)
- error 500!!! or chunk chars
- does not return trade list older than 7 days
- Cannot get more than 1000 bars Kline/Candlestick Data HOT 1
- (Not a noob issue) ModuleNotFoundError HOT 3
- The documentation for this project is wrong
- is there api to get permission?
- TAR_BAD_ARCHIVE: Unrecognized archive format
- Withdraw currency /api/v3/capital/withdraw/apply
- MEXC package won't work
- account_info not working
- ModuleNotFoundError: No module named 'mexc_sdk' on Python HOT 1
- new code HOT 1
- Spot client fails to construct HOT 1
- python example for portfolio generator
- orderType = 'STOP_LOSS_LIMIT' gives me a {"msg":"invalid type","code":500}
- Python Issue! Failed to place market order. Error: 'Spot' object has no attribute 'newOrderTest' HOT 1
- buying/selling on Spot
- Possible to use API for futures?
- Is there api to get all open orders not just for one symbol
- API response for new MARKET order is sending wrong execution price HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mexc-api-sdk.