Chilkat Online Tools

ERROR!

------------------- GenerateCode ----------------------
ImpliedContentType: 
explicitContentType: application/json
---- begin chilkat script ----
// This example assumes the Chilkat API to have been previously unlocked.
// See {{-global_unlock:::Global Unlock Sample-}} for sample code.

new Http http;
ckbool success;

new JsonObject queryParams;
ignore = queryParams.UpdateString("timestamp","{{timestamp}}");
ignore = queryParams.UpdateString("signature","{{signature}}");

call http.SetRequestHeader("Content-Type","application/json");
call http.SetRequestHeader("X-MBX-APIKEY","{{binance-api-key}}");


new HttpResponse resp;
success = http.HttpParams("GET","https://domain.com/eapi/v1/openOrders",queryParams,resp);
if (success == ckfalse) {
println http.LastErrorText;
return;
}

println resp.StatusCode;
println resp.BodyStr;

---- end chilkat script ----

Go / Binance european options API / Query Current Open Option Orders (USER_DATA)

Back to Collection Items

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global_Ref.html">Global_Ref.html">Global_Ref.html">Global_Ref.html">Global_Ref.html">Global_Ref.html">Global_Ref.html">Global Unlock Sample for sample code.

    http := Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">chilkat.NewHttp()
    var success bool

    queryParams := JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">chilkat.NewJsonObject()
    queryParams.UpdateString("timestamp","{{timestamp}}")
    queryParams.UpdateString("signature","{{signature}}")

ERROR: Non-existent Chilkat method:  Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.SetRequestHeader
ERROR: Non-existent Chilkat method:  Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.SetRequestHeader

ERROR: Non-existent Chilkat method:  Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.SetRequestHeader
ERROR: Non-existent Chilkat method:  Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.SetRequestHeader

    resp := HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">chilkat.NewHttpResponse()
ERROR: Entry not found: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.HttpParams
ERROR: CodeGen:
  emitNewObject:
    atgType: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
    varName: http
  --emitNewObject
  emitNewObject:
    atgType: JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject
    varName: queryParams
  --emitNewObject
  emitNewObject:
    atgType: HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse
    varName: resp
  --emitNewObject
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  getApiProperty:
    Class not found
    className: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  --getApiProperty
--CodeGen

ERROR: Non-existent Chilkat method:  Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.HttpParams
Assignment type mismatch.  ExpressionType=ERROR:, atgType=ckbool

    if success == false {
ERROR: Entry not found: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http.LastErrorText
ERROR: CodeGen:
  emitNewObject:
    atgType: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
    varName: http
  --emitNewObject
  emitNewObject:
    atgType: JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject_Ref.html">JsonObject
    varName: queryParams
  --emitNewObject
  emitNewObject:
    atgType: HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse_Ref.html">HttpResponse
    varName: resp
  --emitNewObject
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  getApiProperty:
    Class not found
    className: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  --getApiProperty
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  failedToLoadClass: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  getApiProperty:
    Class not found
    className: Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http_Ref.html">Http
  --getApiProperty
--CodeGen

        fmt.Println(http.LastErrorText())
        http.DisposeHttp()
        queryParams.DisposeJsonObject()
        resp.DisposeHttpResponse()
        return
    }

    fmt.Println(resp.StatusCode())
    fmt.Println(resp.BodyStr())

    http.DisposeHttp()
    queryParams.DisposeJsonObject()
    resp.DisposeHttpResponse()

Curl Command

curl -G -d "timestamp=%7B%7Btimestamp%7D%7D"
	-d "signature=%7B%7Bsignature%7D%7D"
	-H "Content-Type: application/json"
	-H "X-MBX-APIKEY: {{binance-api-key}}"
https://domain.com/eapi/v1/openOrders

Postman Collection Item JSON

{
  "name": "Query Current Open Option Orders (USER_DATA)",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content-Type",
        "type": "text",
        "value": "application/json"
      },
      {
        "key": "X-MBX-APIKEY",
        "type": "text",
        "value": "{{binance-api-key}}"
      }
    ],
    "url": {
      "raw": "{{url}}/eapi/v1/openOrders?timestamp={{timestamp}}&signature={{signature}}",
      "host": [
        "{{url}}"
      ],
      "path": [
        "eapi",
        "v1",
        "openOrders"
      ],
      "query": [
        {
          "key": "symbol",
          "value": "",
          "description": "return all orders if don't pass, Option trading pair, e.g BTC-200730-9000-C",
          "disabled": true
        },
        {
          "key": "orderId",
          "value": "",
          "description": "Returns the orderId and subsequent orders, the most recent order is returned by default",
          "disabled": true
        },
        {
          "key": "startTime",
          "value": "",
          "description": "Start Time",
          "disabled": true
        },
        {
          "key": "endTime",
          "value": "",
          "description": "End Time",
          "disabled": true
        },
        {
          "key": "limit",
          "value": "",
          "description": "Number of result sets returned Default:100 Max:1000",
          "disabled": true
        },
        {
          "key": "recvWindow",
          "value": "5000",
          "description": "The value cannot be greater than 60000",
          "disabled": true
        },
        {
          "key": "timestamp",
          "value": "{{timestamp}}"
        },
        {
          "key": "signature",
          "value": "{{signature}}"
        }
      ]
    },
    "description": "Query current all open orders, status: ACCEPTED PARTIALLY_FILLED"
  },
  "response": [
  ]
}