Skip to content

api orderinfo

ntwerd edited this page Apr 12, 2023 · 3 revisions

Order Info


Returns json data about order information.

URL

http://122.8.148.106/robot/api/v1/order/<brokerCode>/<accountNo>

Method:

GET

Required:

Header : X-API-KEY

Success Response:

  • Code: 200

    Content:

{
    "status": "T",
    "message": null,
    "data": {
        "orders": [
            {
                "orderNo": "5116",
                "externalOrderNo": null,
                "accountNo": null,
                "date": 1535516352000,
                "enterDate": null,
                "tradeDate": null,
                "cancelDate": null,
                "symbol": "AOT",
                "side": "B",
                "price": 66.25,
                "avgDealPrice": null,
                "priceType": "LIMIT",
                "vol": 100,
                "pbVolume": null,
                "priceDigit": 0,
                "position": "O",
                "status": "MATCH",
                "statusText": "Match(M)",
                "validity": null,
                "validityType": null,
                "matchedVol": 100,
                "balanceVol": null,
                "until": null,
                "canCancelled": false,
                "canChanged": false,
                "offline": false,
                "enterId": null,
                "enterTime": null,
                "cancelId": null,
                "cancelVolume": null,
                "reasonText": null,
                "comment": null
            }
        ]
    }
}

Error Response:

  • Code: 200

    Content:

{
    "status": "F",
    "message": "Invalid api key",
    "data": {}
}

Clone this wiki locally