coinbase key

This commit is contained in:
Dobromir Popov 2024-03-06 11:49:45 +02:00
parent e5358562f4
commit d101614b0d
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,17 @@
{
"name": "organizations/8ba2cc53-567e-4490-ba31-0d57fa2573b6/apiKeys/eaeef0cf-eca2-4095-83a7-f850605a7e43",
"principal": "2764d364-d2c1-55c8-ac5f-aa91c6a9eff3",
"principalType": "USER",
"publicKey": "-----BEGIN EC PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEyf3vQyFtLq8VkcD3FxpH9x3VdyhN\nG2CayTR6/7DeMlb3xU804anlrZHuTGLYD/V+IFUJOjRbbxRlFqpji3U5rg==\n-----END EC PUBLIC KEY-----\n",
"privateKey": "-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEICPSzTau+LTv8WaFkbovbTD5buiyJ7xg31TPUX3ugOBIoAoGCCqGSM49\nAwEHoUQDQgAEyf3vQyFtLq8VkcD3FxpH9x3VdyhNG2CayTR6/7DeMlb3xU804anl\nrZHuTGLYD/V+IFUJOjRbbxRlFqpji3U5rg==\n-----END EC PRIVATE KEY-----\n",
"createTime": "2024-03-06T09:44:24.799205586Z",
"projectId": "d487cc31-3ec5-4e67-8211-c6ca0fe3ac08",
"nickname": "cb",
"scopes": [
"rat/portfolio:2764d364-d2c1-55c8-ac5f-aa91c6a9eff3#trade",
"rat#trade"
],
"allowedIps": [],
"keyType": "TRADING_KEY",
"enabled": true
}

View File

@ -3,7 +3,7 @@ if (require('dotenv')) {
require('dotenv').config()
}
console.log('Starting ws server on port '+ process.env.SERVER_PORT_WS);
console.log('Starting ws server on port ' + process.env.SERVER_PORT_WS);
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: process.env.SERVER_PORT_WS });
@ -120,7 +120,7 @@ app.get('/', (req, res) => {
//accept LOG messages on /log
app.post('/log', (req, res) => {
console.log("log["+new Date().toISOString() + '] ' + req.body.message);
console.log("log[" + new Date().toISOString() + '] ' + req.body.message);
res.send('OK', 200, { 'Content-Type': 'text/plain' });
});