![npm install node-Okx-api](https://camo.githubusercontent.com/f725e9a25c6d7c77e758c6c64492310b7dfb9f88bda4f231d5b6eb24ac3fe31f/68747470733a2f2f6e6f6465692e636f2f6e706d2f6f6b782d6170692d76352e706e673f6d696e693d74727565)
![Last Commit](https://camo.githubusercontent.com/ee1207853798675489990b44e207d8ac6e8dc22c6245ec610549864560f0967a/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6173742d636f6d6d69742f3434353032323838392f6f6b782d76352d6170692d6e6f64656a733f7363616c653d32266c6162656c3d25463025394625394625413325323055706461746564266c6162656c436f6c6f723d626c61636b26636f6c6f723d3434384146462663616368653d39393939)
const API = require("okx-api-v5")
const api = new API({
api_key: "<key>",
secret_key: "<secret>",
pass_phrase: "<pass>"
})
const proxy = {
host: '127.0.0.1',
port: 7890
}
const api = new API({
api_key: "<key>",
secret_key: "<secret>",
pass_phrase: "<pass>",
proxy_setting: proxy
})
GET /api/v5/public/instruments
console.info(await api.get_api_v5_public_instruments({instType: "", uly: "", instId: ""}));
GET /api/v5/public/delivery-exercise-history
console.info(await api.get_api_v5_public_deliveryExerciseHistory({
instType: "",
uly: "",
after: "",
before: "",
limit: ""
}));
GET /api/v5/public/open-interest
console.info(await api.get_api_v5_public_openInterest({instType: "", uly: "", instId: ""}));
GET /api/v5/public/funding-rate
console.info(await api.get_api_v5_public_fundingRate({instId: ""}));
GET /api/v5/public/funding-rate-history
console.info(await api.get_api_v5_public_fundingRateHistory({instId: "", before: "", after: "", limit: ""}));
GET /api/v5/public/limit-price
console.info(await api.get_api_v5_public_limitPrice({instId: ""}));
GET /api/v5/public/opt-summary
console.info(await api.get_api_v5_public_optSummary({uly: "", expTime: ""}));
GET /api/v5/public/estimated-price
console.info(await api.get_api_v5_public_estimatedPrice({instId: ""}));
GET /api/v5/public/discount-rate-interest-free-quota
console.info(await api.get_api_v5_public_discountRateInterestFreeQuota({discountLv: ""}));
console.info(await api.get_api_v5_public_time({}));
GET /api/v5/public/liquidation-orders
console.info(await api.get_api_v5_public_liquidationOrders({
instType: "",
mgnMode: "",
instId: "",
ccy: "",
uly: "",
alias: "",
state: "",
before: "",
after: "",
limit: ""
}));
GET /api/v5/public/mark-price
console.info(await api.get_api_v5_public_markPrice({instType: "", instId: "", uly: ""}));
GET /api/v5/public/position-tiers
console.info(await api.get_api_v5_public_positionTiers({instType: "", instId: "", uly: ""}));
GET /api/v5/public/interest-rate-loan-quota
console.info(await api.get_api_v5_public_interestRateLoanQuota({
instType: "",
tdMode: "",
instId: "",
uly: "",
tier: ""
}));
GET /api/v5/public/vip-interest-rate-loan-quota
console.info(await api.get_api_v5_public_vipInterestRateLoanQuota({}));
GET /api/v5/public/underlying
console.info(await api.get_api_v5_public_underlying({}));
GET /api/v5/public/insurance-fund
console.info(await api.get_api_v5_public_insuranceFund({instType: ""}));
GET /api/v5/rubik/stat/trading-data/support-coin
console.info(await api.get_api_v5_rubik_stat_tradingData_supportCoin({}));
GET /api/v5/rubik/stat/taker-volume
console.info(await api.get_api_v5_rubik_stat_takerVolume({ccy: "", instType: "", begin: "", end: "", period: ""}));
GET /api/v5/rubik/stat/margin/loan-ratio
console.info(await api.get_api_v5_rubik_stat_margin_loanRatio({ccy: "", begin: "", end: "", period: ""}));
GET /api/v5/rubik/stat/contracts/long-short-account-ratio
console.info(await api.get_api_v5_rubik_stat_contracts_longShortAccountRatio({
ccy: "",
begin: "",
end: "",
period: ""
}));
GET /api/v5/rubik/stat/contracts/open-interest-volume
console.info(await api.get_api_v5_rubik_stat_contracts_openInterestVolume({ccy: "", begin: "", end: "", period: ""}));
GET /api/v5/rubik/stat/option/open-interest-volume-ratio
console.info(await api.get_api_v5_rubik_stat_option_openInterestVolumeRate({ccy: "", period: ""}));
GET /api/v5/rubik/stat/option/open-interest-volume-expiry
console.info(await api.get_api_v5_rubik_stat_option_openInterestVolumeExpiry({ccy: "", period: ""}));
GET /api/v5/rubik/stat/option/open-interest-volume-strike
console.info(await api.get_api_v5_rubik_stat_option_openInterestVolumeStrike({ccy: "", expTime: "", period: ""}));
GET /api/v5/rubik/stat/option/taker-block-volume
console.info(await api.get_api_v5_rubik_stat_option_takerBlockVolume({ccy: "", period: ""}));
GET /api/v5/system/status
console.info(await api.get_api_v5_system_status({}));