1.0.13 • Published 12 months ago

okx-typescript-api v1.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

okx-typescript-api

This is created to hanlde OKX API.

Installation

depending on the package manager
NPM

npm i --save okx-typescript-api

YARN

yarn add okx-typescript-api

For Example

import { HttpApi } from "okx-typescript-api";
import { OrderInpoutDto } from "okx-typescript-api/dist/src/dto/order.dto";

const bootstrap = async () => {
    const okxHttp = new HttpApi(
        'okx-key',
        'okx-secret',
        'passphrase'
    );
    const orderInp :OrderInpoutDto  = {
        instId:"DOT-USDT",
        side:"buy",
        ccy:"USDT",
        sz:"5",
        tdMode:"cash",
        ordType:"limit",
        px:"0.67"
    }
    const tmp = await okxHttp.placeOrder(orderInp);
    console.log(tmp);
};

bootstrap();
1.0.13

12 months ago

1.0.12

12 months ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago