Skip to content

api bidoffer

ntwerd edited this page Apr 12, 2023 · 3 revisions

Bid/Offer


Returns json data about bid/offer information.

URL

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

Method:

POST

Required

Header : X-API-KEY: <XXXXXX> , Content-Type: application/json

Payload

  • symbols : symbol list

Sample Payload

{ "symbols" :
	[
		"PTT",
		"AAV"
	]
}

Success Response:

  • Code: 200

    Content:

{
    "status": "T",
    "message": "success",
    "datas": [
        {
            "symbol": "PTT",
            "bid": [
                {
                    "price": 46.5,
                    "volume": 4855400
                },
                {
                    "price": 46,
                    "volume": 2779200
                },
                {
                    "price": 47,
                    "volume": 10161900
                },
                {
                    "price": 46.25,
                    "volume": 2401400
                },
                {
                    "price": 46.75,
                    "volume": 7360700
                }
            ],
            "offer": [
                {
                    "price": 47.5,
                    "volume": 3507200
                },
                {
                    "price": 48,
                    "volume": 2393000
                },
                {
                    "price": 47.25,
                    "volume": 4485900
                },
                {
                    "price": 48.25,
                    "volume": 1788400
                },
                {
                    "price": 47.75,
                    "volume": 2879900
                }
            ]
        },
        {
            "symbol": "AAV",
            "bid": [
                {
                    "price": 3.82,
                    "volume": 2535400
                },
                {
                    "price": 3.78,
                    "volume": 2006500
                },
                {
                    "price": 3.8,
                    "volume": 3227000
                },
                {
                    "price": 3.76,
                    "volume": 561900
                },
                {
                    "price": 3.74,
                    "volume": 339000
                }
            ],
            "offer": [
                {
                    "price": 3.84,
                    "volume": 403000
                },
                {
                    "price": 3.92,
                    "volume": 705400
                },
                {
                    "price": 3.88,
                    "volume": 613200
                },
                {
                    "price": 3.86,
                    "volume": 854000
                },
                {
                    "price": 3.9,
                    "volume": 778200
                }
            ]
        }
    ]
}

Error Response:

  • Code: 200

    Content:

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

Clone this wiki locally