Giter VIP home page Giter VIP logo

kucoin-api's People

Contributors

satoshinaire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

kucoin-api's Issues

get ticker

From your description:

params {pair: string} The trading pair to retrieve price ticker for. (optional, default {})

However, the parameter appears to be mandatory.
I expected to be able to put out one API call and get all tickers in a single response, is this not how it works?

kc.getTicker().then((result) => {
		var array = result.data
		console.log(array)
	})
	.catch((err) => {
		console.log(err)
	})

Gives me this error:

{ NotFoundError: {"timestamp":1515632321281,"status":404,"error":"Not Found","message":"No message available","path":"/undefined/open/tick"}
    at ClientRequest.onResponse (c:\Trader\Logic\node_modules\restify-clients\lib\HttpClient.js:217:26)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
    at TLSSocket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
  jse_shortmsg: '',
  jse_info: {},
  message: '{"timestamp":1515632321281,"status":404,"error":"Not Found","message
":"No message available","path":"/undefined/open/tick"}',
  body:
   { timestamp: 1515632321281,
     status: 404,
     error: 'Not Found',
     message: 'No message available',
     path: '/undefined/open/tick' } }

Error on createOrder

First of, I've already placed 287 succesful orders with this library.
Today, all of the sudden, I began getting orders when placing an order.
As this is a fully automated trader, it is programmed to try again when getting an error.

However, although the response was an error, all orders were succesfully posted and filled, so something must have gone wrong, but I have no idea what.

Errorlog:

{ NotFoundError
at ClientRequest.onResponse (C:\Trader\Logic\node_modules\restify-clients\lib\HttpClient.js:217:26)
at Object.onceWrapper (events.js:315:30)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:551:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:117:23)
at TLSSocket.socketOnData (_http_client.js:440:20)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12) jse_shortmsg: '', jse_info: {}, message: '', body: {} }

Invalid nonce

Hi mate,
I'm pretty sure your api is right, however I've been getting this error {code: "UNAUTH", msg: "Invalid nonce", success: false, โ€ฆ} when I try to test the api with my keys.
Do you have any idea of what might be causing this?

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.