crypto-nodes
Version:
56 lines (47 loc) • 1.89 kB
HTML
<!-- Assertion selector css Block -->
<script type="text/javascript">
RED.nodes.registerType('okexConnector', {
category: 'crypto',
color: '#C0DEED',
defaults: {
disabled: { value: false },
api_key: {value: ""},
api_secret: {value: ""},
server_ws: { value: "wss://real.okcoin.com:10440/websocket/okcoinapi" }
},
inputs: 1,
outputs: 1,
icon: "okex.jpg",
label: function () {
return this.name || 'Okex Data';
},
inputLabels: [],
outputLabels: [],
oneditprepare: function() {
},
});
</script>
<script type="text/x-red" data-template-name="okexConnector">
<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-server_ws"><i class="icon-tag"></i> Websock Server </label>
<select id="node-input-server_ws">
<option value="wss://real.okcoin.com:10440/websocket/okcoinapi">wss://real.okcoin.com:10440/websocket/okcoinapi</option>
<option value="wss://real.okex.com:10440/websocket/okexapi">wss://real.okex.com:10440/websocket/okexapi</option>
</select>
</div>
</script>
<script type="text/x-red" data-help-name="okexConnector">
<p>Retreives all bittrex orderbook data</p>
</script>