Coder Social home page Coder Social logo

bitmart-apis's Introduction

Word on the code and package

The repository was forked from https://github.com/pardeepantech/bitmart-apis. I removed the console.log calls that were left for debugging purposes and added some missing APIs.

bitmart-api-model

Use this Package to interact with Birmart Pro new api.

Installation

npm i bitmart-api-model

Import Package

import BitmartModel from "bitmart-api-model";
const obj = new BitmartModel("memo", "access_token", "api_secret");

Usage

const getServerTime = await obj.getServerTime();
const testGetRequest = await obj.testGet();
const testPostRequest = await obj.testPost();
const ticker = await obj.getTicker("BTC_USDT");
const balance = await obj.getBalance();
const submitLimitOrder = await obj.placeLimitOrder(
  "SYMBOL",
  "buy|sell",
  "QTY",
  "PRICE"
);
const submitMarketOrder = await obj.placeMarketOrder(
  "SYMBOL",
  "buy|sell",
  "QTY"
);
const getOrder = await obj.getOrder("SYMBOL", "ORDER_ID");
const cancelOrder = await obj.cancelOrder("SYMBOL", "ORDER_ID");
const cancelAllOrders = await obj.cancelAllOrders("SYMBOL", "buy|sell");
const kLineData = await obj.getKLineData("SYMBOL", "step", "from", "to");

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

Pardeep Kumar
Git: https://github.com/pardeepantech

GIT REPO

Github: https://github.com/pardeepantech/bitmart-apis

License

[MIT]

bitmart-apis's People

Contributors

pardeepantech avatar taeguscromis avatar

Watchers

 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.