@okxweb3/marketplace-library
v1.0.0
Published
OKX MarketPlace library SDK
Downloads
24
Readme
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
}