Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oQueryParams = ObjCreate("Chilkat.JsonObject")
$oQueryParams.UpdateString("pair","")
$oQueryParams.UpdateString("contractType","")
$oQueryParams.UpdateString("interval","")
$oHttp.SetRequestHeader "Content-Type","application/json"
Local $oResp = $oHttp.QuickRequestParams("GET","https://domain.com/dapi/v1/continuousKlines",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oResp.StatusCode & @CRLF)
ConsoleWrite($oResp.BodyStr & @CRLF)
Curl Command
curl -G -d "pair="
-d "contractType="
-d "interval="
-H "Content-Type: application/json"
https://domain.com/dapi/v1/continuousKlines
Postman Collection Item JSON
{
"name": "Continuous Contract Kline/Candlestick Data",
"request": {
"method": "GET",
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"url": {
"raw": "{{url}}/dapi/v1/continuousKlines?pair=&contractType=&interval=",
"host": [
"{{url}}"
],
"path": [
"dapi",
"v1",
"continuousKlines"
],
"query": [
{
"key": "pair",
"value": ""
},
{
"key": "contractType",
"value": ""
},
{
"key": "interval",
"value": ""
},
{
"key": "startTime",
"value": null,
"disabled": true
},
{
"key": "endTime",
"value": null,
"disabled": true
},
{
"key": "limit",
"value": null,
"disabled": true
}
]
}
},
"response": [
]
}