Skip to content

Instantly share code, notes, and snippets.

@makerstorage
Last active March 14, 2022 07:20
Show Gist options
  • Select an option

  • Save makerstorage/bb6b0a2579498986cb3c278fdc8be5c9 to your computer and use it in GitHub Desktop.

Select an option

Save makerstorage/bb6b0a2579498986cb3c278fdc8be5c9 to your computer and use it in GitHub Desktop.
Node-red Kripto borsalar api http request
[
{
"id": "940b1013a1853d68",
"type": "tab",
"label": "api ve http requests",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8ecf4f9285cb20d9",
"type": "http request",
"z": "940b1013a1853d68",
"name": "BtcTurk Ticker",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.btcturk.com/api/v2/ticker",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 360,
"y": 80,
"wires": [
[
"3d530c83487e3914",
"3a79ae5648773dd0"
]
]
},
{
"id": "495b635c61cc01ce",
"type": "inject",
"z": "940b1013a1853d68",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 170,
"y": 80,
"wires": [
[
"8ecf4f9285cb20d9"
]
]
},
{
"id": "3d530c83487e3914",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.data[2].high",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 590,
"y": 80,
"wires": []
},
{
"id": "3a79ae5648773dd0",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 140,
"wires": []
},
{
"id": "92fc427202f7135a",
"type": "inject",
"z": "940b1013a1853d68",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 240,
"wires": [
[
"3b8886f6c0812037"
]
]
},
{
"id": "3b8886f6c0812037",
"type": "http request",
"z": "940b1013a1853d68",
"name": "binance ticker",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.binance.com/api/v3/ticker/price?symbol=ETHBTC",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 380,
"y": 240,
"wires": [
[
"abc963148fa609ce"
]
]
},
{
"id": "abc963148fa609ce",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 240,
"wires": []
},
{
"id": "50192416cd310a98",
"type": "inject",
"z": "940b1013a1853d68",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "BNXUSDT",
"payloadType": "str",
"x": 140,
"y": 340,
"wires": [
[
"06b31b3daa50943d"
]
]
},
{
"id": "a5c7f65b0e3c4d73",
"type": "http request",
"z": "940b1013a1853d68",
"name": "binance ticker",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.binance.com/api/v3/ticker/price?symbol={{{query}}}",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 540,
"y": 340,
"wires": [
[
"c057585150d93b34"
]
]
},
{
"id": "c057585150d93b34",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 340,
"wires": []
},
{
"id": "06b31b3daa50943d",
"type": "change",
"z": "940b1013a1853d68",
"name": "",
"rules": [
{
"t": "set",
"p": "query",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 340,
"wires": [
[
"a5c7f65b0e3c4d73"
]
]
},
{
"id": "5767c286f0618b7b",
"type": "comment",
"z": "940b1013a1853d68",
"name": "query ile",
"info": "",
"x": 130,
"y": 300,
"wires": []
},
{
"id": "ba6f54d347ec63c2",
"type": "comment",
"z": "940b1013a1853d68",
"name": "json çevirmeyi unutma",
"info": "",
"x": 180,
"y": 40,
"wires": []
},
{
"id": "44d5491580531624",
"type": "inject",
"z": "940b1013a1853d68",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "BTCUSDT",
"payloadType": "str",
"x": 140,
"y": 460,
"wires": [
[
"6ee2d6adf322d843"
]
]
},
{
"id": "051e1ba56e1f64fa",
"type": "http request",
"z": "940b1013a1853d68",
"name": "btcTurk ticker",
"method": "GET",
"ret": "obj",
"paytoqs": "ignore",
"url": "https://api.btcturk.com/api/v2/orderbook?pairSymbol={{{query}}}",
"tls": "",
"persist": false,
"proxy": "",
"authType": "",
"senderr": false,
"x": 540,
"y": 460,
"wires": [
[
"e6a0054ccd7650e8",
"fd1172f6f996429a"
]
]
},
{
"id": "e6a0054ccd7650e8",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload.data.asks[1]",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 770,
"y": 460,
"wires": []
},
{
"id": "6ee2d6adf322d843",
"type": "change",
"z": "940b1013a1853d68",
"name": "",
"rules": [
{
"t": "set",
"p": "query",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 460,
"wires": [
[
"051e1ba56e1f64fa"
]
]
},
{
"id": "0621b11dece34dd3",
"type": "comment",
"z": "940b1013a1853d68",
"name": "orderbook",
"info": "",
"x": 130,
"y": 420,
"wires": []
},
{
"id": "f793e1018cc84a6f",
"type": "inject",
"z": "940b1013a1853d68",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "3",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 120,
"wires": [
[]
]
},
{
"id": "fd1172f6f996429a",
"type": "debug",
"z": "940b1013a1853d68",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 740,
"y": 520,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment