Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.31 KB

issues.rst

File metadata and controls

48 lines (41 loc) · 1.31 KB

Known Issues

Issues listed here: `python-kraken-sdk/issues`_

Futures Trading

  • The Kraken API returns 500 - INTERNAL_SERVER_ERROR for some endpoints if order_id or orderId, cliOrdId seems to work in all cases.

  • Kraken's API doesn't seem to know the trailing_stop order type and raises an error if this type is part of an order. This order type is documented here https://docs.kraken.com/api/docs/futures-api/trading/send-order

    from kraken.futures import Trade
    
    Trade(key="api-key", secret="secret-key").create_order(
        orderType="trailing_stop",
        size=10,
        side="buy",
        symbol="PI_XBTUSD",
        limitPrice=12000,
        triggerSignal="mark",
        trailingStopDeviationUnit="PERCENT",
        trailingStopMaxDeviation=10,
    )
    """ Output:
    {
        "status": "BAD_REQUEST",
        "result": "error",
        "errors": [{
            "code": 11,
            "message": "invalid order type"
        }],
        "serverTime":"2023-04-07T19:26:41.299Z"
    }
    """"