Coder Social home page Coder Social logo

cryptomkt / cryptomkt-node Goto Github PK

View Code? Open in Web Editor NEW
22.0 5.0 7.0 274 KB

CryptoMarket Node SDK

Home Page: https://developers.cryptomkt.com

License: Apache License 2.0

TypeScript 100.00%
ethereum crytocurrency ether cryptomkt exchange bitcoin eos stellar-lumens node

cryptomkt-node's People

Contributors

bigrev avatar insmael avatar kattatzu avatar ppbustamante avatar rmeruane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptomkt-node's Issues

Funcionamiento

Buenas tardes,

¡¡Excelente la nueva librería!!

He intentado usarla pero no logro recibir los libros ni sus cambios, por lo que veo en la documentación no se menciona como solicitar el libro completo ni como subscribirse a los deltas.

Me podrían dar una manito para usar bien la librería.

const { Client } = require('cryptomarket');
const cryptomktClient = new Client({
    'apiKey': serviceProvider.Config.get('CRYPTOMKT_API_KEY'),
    'apiSecret': serviceProvider.Config.get('CRYPTOMKT_API_SECRET')
});

self.socket = await cryptomktClient.socket.connect();

self.socket.subscribe(market.code.ws);
self.socket.on('open-book', (data) => {
    console.log('open-book', data);
});
self.socket.on('historical-book', (data) => {
    console.log('historical-book', data);
});

Gracias
Saludos!

Error: ESOCKETTIMEDOUT

Hola!,

El sdk me está arrojando el error "Error: ESOCKETTIMEDOUT" el cual me mata el proceso y me bota el server:

ESOCKETTIMEDOUT

sendOrder

Sin título

He leído que puede ser la configuración del cliente http/https (request/request#2738).

request

Tienen alguna recomendación para evitar que pase este problema??

TypeError: Cannot read property '1' of undefined

Hola,

cuando se logra conectarse a los libros de ordenes después de unos segundos arroja este problema al intentar sincronizar los datos con jsondiffpatch.

/Users/kattatzu/projects/container/node_modules/cryptomarket/node_modules/jsondiffpatch/dist/jsondiffpatch.cjs.js:731
    child = new PatchContext(context.left[name], context.delta[name]);
                                         ^

TypeError: Cannot read property '1' of undefined
    at nestedPatchFilter (/Users/kattatzu/projects/container/node_modules/cryptomarket/node_modules/jsondiffpatch/dist/jsondiffpatch.cjs.js:731:42)
    at Pipe.process (/Users/kattatzu/projects/container/node_modules/cryptomarket/node_modules/jsondiffpatch/dist/jsondiffpatch.cjs.js:273:9)
    at Processor.process (/Users/kattatzu/projects/container/node_modules/cryptomarket/node_modules/jsondiffpatch/dist/jsondiffpatch.cjs.js:234:18)
    at DiffPatcher.patch (/Users/kattatzu/projects/container/node_modules/cryptomarket/node_modules/jsondiffpatch/dist/jsondiffpatch.cjs.js:1470:29)
    at Socket.<anonymous> (/Users/kattatzu/projects/container/node_modules/cryptomarket/lib/Socket.js:377:52)
    at Socket.Emitter.emit (/Users/kattatzu/projects/container/node_modules/component-emitter/index.js:133:20)
    at Socket.onevent (/Users/kattatzu/projects/container/node_modules/socket.io-client/lib/socket.js:278:10)
    at Socket.onpacket (/Users/kattatzu/projects/container/node_modules/socket.io-client/lib/socket.js:236:12)
    at Manager.<anonymous> (/Users/kattatzu/projects/container/node_modules/component-bind/index.js:21:15)
    at Manager.Emitter.emit (/Users/kattatzu/projects/container/node_modules/component-emitter/index.js:133:20)
    at Manager.ondecoded (/Users/kattatzu/projects/container/node_modules/socket.io-client/lib/manager.js:345:8)
    at Decoder.<anonymous> (/Users/kattatzu/projects/container/node_modules/component-bind/index.js:21:15)
    at Decoder.Emitter.emit (/Users/kattatzu/projects/container/node_modules/component-emitter/index.js:133:20)
    at Decoder.add (/Users/kattatzu/projects/container/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:251:12)
    at Manager.ondata (/Users/kattatzu/projects/container/node_modules/socket.io-client/lib/manager.js:335:16)
    at Socket.<anonymous> (/Users/kattatzu/projects/container/node_modules/component-bind/index.js:21:15)
    at Socket.Emitter.emit (/Users/kattatzu/projects/container/node_modules/component-emitter/index.js:133:20)
    at Socket.onPacket (/Users/kattatzu/projects/container/node_modules/engine.io-client/lib/socket.js:461:14)
    at WS.<anonymous> (/Users/kattatzu/projects/container/node_modules/engine.io-client/lib/socket.js:278:10)
    at WS.Emitter.emit (/Users/kattatzu/projects/container/node_modules/component-emitter/index.js:133:20)
    at WS.Transport.onPacket (/Users/kattatzu/projects/container/node_modules/engine.io-client/lib/transport.js:149:8)
    at WS.Transport.onData (/Users/kattatzu/projects/container/node_modules/engine.io-client/lib/transport.js:141:8)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! okane-container@1.0.0 serve: `node --no-deprecation src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the okane-container@1.0.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/kattatzu/.npm/_logs/2020-02-24T18_37_35_450Z-debug.log

Libreria en npmjs.com

Hola, quisiera saber si esta librería esta disponible en npmjs.com, de ser así como se llama?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.