Ticker price
2 min
📝 description at this endpoint you can check the current price of the queried pair { "name" "/api/price/v1/ticker/{pair}", "method" "get", "url" "https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl", "description" "", "tab" "examples", "examples" { "languages" \[ { "id" "eoh2vxianobigl pzyjdb", "language" "curl", "code" "curl request get \\\\\n url https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl/{pair}/{provider}/{side} \\\\\n header 'accept application/json' \\\\\n header 'authorization string'", "customlabel" "" }, { "id" "pitenc5hgn3yjk0ydpsx ", "language" "nodejs", "code" "var request = require('request');\nvar options = {\n 'method' 'get',\n 'url' 'https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl/{pair}/{provider}/{side}',\n 'headers' {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n }\n};\nrequest(options, function (error, response) {\n if (error) throw new error(error);\n console log(response body);\n});\n", "customlabel" "" }, { "id" "srjfkawhbqz085edaxhtb", "language" "javascript", "code" "var myheaders = new headers();\nmyheaders append(\\"accept\\", \\"application/json\\");\nmyheaders append(\\"content type\\", \\"application/json\\");\nmyheaders append(\\"authorization\\", \\"string\\");\n\nvar requestoptions = {\n method 'get',\n headers myheaders,\n redirect 'follow'\n};\n\nfetch(\\"https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl/{pair}/{provider}/{side}\\", requestoptions)\n then(response => response text())\n then(result => console log(result))\n catch(error => console log('error', error));", "customlabel" "" }, { "id" "nf simevbyhq 1h3ya7pe", "language" "python", "code" "import requests\nimport json\n\nurl = \\"https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl/{pair}/{provider}/{side}\\"\n\npayload = {}\nheaders = {\n 'accept' 'application/json',\n 'content type' 'application/json',\n 'authorization' 'string'\n}\n\nresponse = requests request(\\"get\\", url, headers=headers, data=payload)\n\nprint(response text)\n", "customlabel" "" }, { "id" "pybsbx wrwxdvecmgksoz", "language" "ruby", "code" "require \\"uri\\"\nrequire \\"json\\"\nrequire \\"net/http\"\n\nurl = uri(\\"https //cloudbreak cambyopro com/api/price/v1/ticker/usdt brl/{pair}/{provider}/{side}\\")\n\nhttps = net http new(url host, url port)\nhttps use ssl = true\n\nrequest = net http get new(url)\nrequest\[\\"accept\\"] = \\"application/json\\"\nrequest\[\\"content type\\"] = \\"application/json\\"\nrequest\[\\"authorization\\"] = \\"string\\"\n\nresponse = https request(request)\nputs response read body\n", "customlabel" "" } ], "selectedlanguageid" "eoh2vxianobigl pzyjdb" }, "results" { "languages" \[ { "id" "8awq k4b2jwsr3cwel30t", "language" "200", "code" "{\n\t\\"success\\" true,\n\t\\"message\\" \\"success\\",\n\t\\"quoteid\\" \\"1111aaaa 2222 bbbb 3333 cccc4444dddd\\",\n\t\\"quote\\" 4 123456,\n\t\\"totalvalue\\" 102 58\n}", "customlabel" "" }, { "id" "iyip6p1pcgnzedqicqbit", "language" "401", "code" "{\n \\"success\\" false,\n \\"message\\" \\"missing bearer token\\"\n}", "customlabel" "" }, { "id" "war2iqnwnkxc3jrqmrqfr", "language" "404", "code" "{\n \\"success\\" false,\n \\"message\\" \\"quote not found \\"\n}", "customlabel" "" }, { "id" " vfuwl srefs1u1cckbau", "language" "502", "code" "{\n \\"success\\" false,\n \\"message\\" \\"provider unavailable\\"\n}", "customlabel" "" } ], "selectedlanguageid" "8awq k4b2jwsr3cwel30t" }, "request" { "pathparameters" \[ { "name" "pair", "kind" "required", "type" "string", "description" "currency pair in the format coin1 coin2 (e g usdt brl) ", "" "currency pair in the format coin1 coin2 (e g usdt brl) " }, { "name" "provider", "kind" "optional", "type" "string", "description" "defines which provider will be used to get the quote \n\t•\tfastest \n\t•\tregular \n\nif not provided, the default value is regular ", "" "defines which provider will be used to get the quote \n\t•\tfastest \n\t•\tregular \n\nif not provided, the default value is regular " }, { "name" "side", "kind" "optional", "type" "string", "description" "side of the operation for the quote\nindicates the side of the trade in the quote \n\t•\tbuy → you are buying the asset\n\t•\tsell → you are selling the asset\n\nif not provided, the default value is buy ", "" "side" } ], "queryparameters" \[], "headerparameters" \[ { "name" "authorization", "kind" "required", "type" "string", "description" "bearer {accesstoken}", "" "authorization" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "currentnewparameter" { "label" "path parameter", "value" "pathparameters" }, "hastryitout" true, "autogeneratedanchorslug" "apipricev1tickerpair 1", "legacyhash" "3d7xtj77rstde ut9f2t1" }