Giter VIP home page Giter VIP logo

upbit-api-node's Introduction

Upbit API Node

API wrapper for Upbit

npm version Build Status

Install

$ npm i -S upbit-api-node
// "start": "babel-node demo",

Disclaimer

I am not responsible for anything done with this.
You use it at your own risk.
There are no warranties or guarantees expressed or implied.
You assume all responsibility and liability.

Quotation APIs

subscribe(options) => ws

Get websocket instance to subscribe websocket protocol

Kind: global function

Param Type Description
options Object
options.reconnect Function Callback that is executed when try to reconnect to websocket
options.openCallback Function Callback that is executed when websocket is opened
options.messageCallback Function Callback that is executed when message is received
options.subscriptionList Object List that you want to subscribe

getTicker(markets) => Promise

Get tickers of given markets

Kind: global async function

Param Type Description
markets String[] Element should folow AAA-BBB

getMinCandles(market, minutes, count) => Promise

Get candles of given market (time unit: minutes)

Kind: global async function

Param Type Description
markets String AAA-BBB
minutes Number Interval of candle. one of [1, 3, 5, 10, 30, 60]
count Number Numbers of candle count you want. 1 - 200

getCandles(market, timeUnit, count) => Promise

Get candles of given market (time unit: day | week | month)

Kind: global async function

Param Type Description
markets String AAA-BBB
timeUnit String Interval of candle. one of [days, weeks, months]
count Number Numbers of candle count you want. 1 - 200

getTick(market, count) => Promise

Get Tick price of given market

Kind: global async function

Param Type Description
markets String AAA-BBB
count Number Numbers of candle count you want. 1 - 200

getOrderbook(markets, count) => Promise

Get Orderbook of given market

Kind: global async function

Param Type Description
markets String[] Element should folow AAA-BBB
count Number Numbers of candle count you want. 1 - 200

getMarketList() => Promise

Get Market List

Kind: global async function

Param Type Description
n/a n/a n/a

Exchange APIs

You need to create instance of Exchange class before using methods

How to create instance of Exchange class?

import { Exchange } from 'upbit-api-node';
const upbitExchange = new Exchange(ACCESS_KEY, SECRET_KEY);
Param Type Description
accessKey String n\a
secretKey String n\a

upbitExchange.getMyAssets() => Promise

Get user's asset information

Kind: async method of instance of Exchange

Param Type Description
n\a n\a n\a

upbitExchange.getOrderChance(market) => Promise

Get order chance

Kind: async method of instance of Exchange

Param Type Description
market String AAA-BBB

upbitExchange.getOrderList(market?, state, page, orderBy) => Promise

Get user's order list

Kind: async method of instance of Exchange

Param Type Description
market String AAA-BBB (Optional)
state String status of order. one of [wait, done, cancel]
page String page number
orderBy String Number

upbitExchange.getOrder(uuid) => Promise

Get user's specific order

Kind: async method of instance of Exchange

Param Type Description
uuid String uuid for order

upbitExchange.createOrder(market, side, volume, price, orderType) => Promise

Create order

Kind: async method of instance of Exchange

Param Type Description
market String AAA-BBB
side String one of [bid, ask] (bid: buy, ask: sell)
volume String amount you want to trade
price String price you want to trade
orderType String one of [limit]

upbitExchange.cancelOrder(uuid) => Promise

Cancel order

Kind: async method of instance of Exchange

Param Type Description
uuid String uuid for order

upbit-api-node's People

Contributors

wonism avatar tungchem1607 avatar icemilo avatar dependabot[bot] avatar

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.