JSPM

@okxweb3/marketplace-library

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q49652F
  • License ISC

OKX MarketPlace library SDK

Package Exports

  • @okxweb3/marketplace-library
  • @okxweb3/marketplace-library/dist/cjs/index.js
  • @okxweb3/marketplace-library/dist/esm/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@okxweb3/marketplace-library) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@okxweb3/marketplace-library

@okxweb3/marketplace-library is an SDK that provides general utility capabilities, equipping developers with versatile tools to build and enhance applications effectively.

Installation

npm i @okxweb3/marketplace-library

Usage

Service

Used to quickly create axios instances, help developers make requests easier, support the get post method, and customize the request header, demo:

import { Service } from '@okxweb3/marketplace-library'
const apiClient = new Service('https://www.okx.com/')

const getSellersPsbt = (options)=> {
    const params = {
      orderIds: options.join()
    }
    const data = await apiClient.get(URL.ORDERS_PSBT, params)
    return data
}