UNPKG

crypto-nodes

Version:

119 lines (96 loc) 3.13 kB
<!-- Assertion selector css Block --> <script type="text/javascript"> RED.nodes.registerType('binanceConnector', { category: 'crypto', color: '#C0DEED', defaults: { disabled: { value: false }, api_key: { value: "" }, api_secret: { value: "" }, test: { value: false } }, inputs: 1, outputs: 1, icon: "binance.png", label: function () { return 'Binance Data'; }, inputLabels: [], outputLabels: [], oneditprepare: function() { }, }); RED.nodes.registerType('binanceOrder', { category: 'crypto', color: '#C0DEED', defaults: { name: {value: ""}, }, inputs: 1, outputs: 1, icon: "binance.png", label: function () { return this.name || 'Binance Order'; }, inputLabels: [], outputLabels: [], oneditprepare: function() { }, }); RED.nodes.registerType('binanceBalance', { category: 'crypto', color: '#C0DEED', defaults: { name: {value: ""}, }, inputs: 1, outputs: 1, icon: "binance.png", label: function () { return this.name || 'Binance Balance'; }, inputLabels: [], outputLabels: [], oneditprepare: function() { }, }); </script> <script type="text/x-red" data-template-name="binanceConnector"> <div class="form-row"> <label for="node-input-disabled"><i class="icon-tag"></i> Disable </label> <input type="checkbox" id="node-input-disabled"> </div> <div class="form-row"> <label for="node-input-api_key"><i class="icon-tag"></i> API Key </label> <input type="text" id="node-input-api_key" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-api_secret"><i class="icon-tag"></i> API Secret </label> <input type="text" id="node-input-api_secret" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-test"><i class="icon-tag"></i> Test Mode </label> <input type="checkbox" id="node-input-test"> </div> </script> <script type="text/x-red" data-help-name="binanceConnector"> <p>Retreives all binance orderbook data</p> </script> <script type="text/x-red" data-template-name="binanceOrder"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name </label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="binanceOrder"> <p>Sends an order to binance</p> </script> <script type="text/x-red" data-template-name="binanceBalance"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name </label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/x-red" data-help-name="binanceBalance"> <p>Retreices binance balance</p> </script>