Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bingx - stoploss orders not parsed correctly #22555

Closed
xmatthias opened this issue May 20, 2024 · 1 comment · Fixed by #22556
Closed

Bingx - stoploss orders not parsed correctly #22555

xmatthias opened this issue May 20, 2024 · 1 comment · Fixed by #22556
Assignees

Comments

@xmatthias
Copy link
Contributor

xmatthias commented May 20, 2024

Operating System

linux

Programming Languages

Python

CCXT Version

4.3.27

Description

Parsing a stoploss order from bingx has some fields wrong - most prelevantly - both the original StopPrice is ignored - since both stopLossPrice and stopPrice are empty.

Now most likely, this will also impact other ordertypes (take-profit and the likes) - but i didn't explicitly try for these.

The order was created using

{
    "info": {
        "symbol": "ETH-USDT",
        "orderId": "1792461744476422144",
        "price": "2775.65",
        "StopPrice": "2778.42",
        "origQty": "0.032359",
        "executedQty": "0",
        "cummulativeQuoteQty": "0",
        "status": "NEW",
        "type": "TAKE_STOP_LIMIT",
        "side": "SELL",
        "time": "1716191156868",
        "updateTime": "1716191156868",
        "origQuoteOrderQty": "0",
        "fee": "0",
        "feeAsset": "USDT",
        "clientOrderID": ""
    },
    "id": "1792461744476422144",
    "clientOrderId": None,
    "symbol": "ETH/USDT",
    "timestamp": 1716191156868,
    "datetime": "2024-05-20T07:45:56.868Z",
    "lastTradeTimestamp": 1716191156868,
    "lastUpdateTimestamp": 1716191156868,
    "type": "take_stop_limit",
    "timeInForce": None,
    "postOnly": None,
    "side": "sell",
    "price": 2775.65,
    "stopPrice": None,
    "triggerPrice": None,
    "stopLossPrice": None,      <-- 2778.42 ? 
    "takeProfitPrice": None,
    "average": None,
    "cost": 0.0,
    "amount": 0.032359,
    "filled": 0.0,
    "remaining": 0.032359,
    "status": "open",
    "fee": {
        "currency": "USDT",
        "cost": "0"
    },
    "trades": [],
    "reduceOnly": None,
    "fees": [
        {
            "currency": "USDT",
            "cost": 0.0
        }
    ]
}

Code

bingx.fetch_order(<orderid>, 'ETH/USDT')

@carlosmiei carlosmiei self-assigned this May 20, 2024
@carlosmiei
Copy link
Collaborator

@xmatthias will take a look 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants