1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
| [
{
'id': '2125815b.3bb54e',
'type': 'http request',
'z': 'd72cc4fe.19b628',
'name': '',
'method': 'GET',
'ret': 'obj',
'url': 'https://api.gdax.com/products/BTC-EUR/ticker',
'tls': '',
'x': 586.6824340820312,
'y': 644.4507446289062,
'wires': [
['ca63afc8.81e55']
]
},
{
'id': 'ca63afc8.81e55',
'type': 'debug',
'z': 'd72cc4fe.19b628',
'name': 'Affiche val_1',
'active': true,
'console': 'false',
'complete': 'payload.price',
'x': 853.4573822021484,
'y': 645.8001432418823,
'wires': [
]
},
{
'id': '31a331d0.2da37e',
'type': 'inject',
'z': 'd72cc4fe.19b628',
'name': '',
'topic': '',
'payload': '',
'payloadType': 'date',
'repeat': '',
'crontab': '',
'once': false,
'x': 156.4522705078125,
'y': 647.10129737854,
'wires': [
['8ea58ab3.10a528',
'db4389ba.c8e8e8']
]
},
{
'id': '8ea58ab3.10a528',
'type': 'function',
'z': 'd72cc4fe.19b628',
'name': 'set headers',
'func': 'msg.headers = {};\nmsg.headers[\'user-agent\'] = \'node-red\';\n\nreturn msg;',
'outputs': 1,
'noerr': 0,
'x': 358.6824264526367,
'y': 646.4507293701172,
'wires': [
['2125815b.3bb54e']
]
},
{
'id': '22a947a.682e7b8',
'type': 'http request',
'z': 'd72cc4fe.19b628',
'name': '',
'method': 'GET',
'ret': 'obj',
'url': 'https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR',
'tls': '',
'x': 585.5713081359863,
'y': 726.6729593276978,
'wires': [
['b9cee827.364a68']
]
},
{
'id': 'b9cee827.364a68',
'type': 'debug',
'z': 'd72cc4fe.19b628',
'name': 'Affiche val_2',
'active': true,
'console': 'false',
'complete': 'payload.result.XXBTZEUR.a[0]',
'x': 853.457389831543,
'y': 725.8002367019653,
'wires': [
]
},
{
'id': 'db4389ba.c8e8e8',
'type': 'function',
'z': 'd72cc4fe.19b628',
'name': 'set headers',
'func': 'msg.headers = {};\nmsg.headers[\'user-agent\'] = \'node-red\';\n\nreturn msg;',
'outputs': 1,
'noerr': 0,
'x': 356.46019744873047,
'y': 726.4507627487183,
'wires': [
['22a947a.682e7b8']
]
}
] |
Partager