
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
bitget-openapi-top
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
npm i bitget-openapi-top
git clone https://github.com/BitgetLimited/v3-bitget-api-sdk.git
cd v3-bitget-api-sdk/bitget-node-sdk-api
npm run install
npm run build
文件名 | 说明 |
---|---|
__test__/mixapi.spec.ts | 合约相关测试用例 |
__test__/spotapi.spec.ts | 现货相关测试用例 |
__test__/websocketTest.spec.ts | 消息推送相关测试用例 |
const bitgetApi = require('bitget-openapi');
const { test, describe, expect } = require('@jest/globals')
const Console = require('console')
const apiKey = '';
const secretKey = '';
const passphrase = '';
describe('test accounts', () => {
test('accounts', () => {
const mixAccountApi = new bitgetApi.default.MixAccountApi(apiKey,secretKey,passphrase);
mixAccountApi.accounts('umcbl').then((data) => {
Console.info(data);
});
})
})
var bitgetApi = require("bitget-openapi")
var Console = require("console")
const apiKey = '';
const secretKey = '';
const passphrase = '';
//处理消息的实现类
class ListennerObj extends bitgetApi.default.Listenner{
reveice(message){
Console.info('>>>'+message);
}
}
const listenner = new ListennerObj();
const bitgetWsClient = new bitgetApi.default.BitgetWsClient(listenner,apiKey,secretKey,passphrase);
const subArr = new Array();
const subscribeOne = new bitgetApi.default.SubscribeReq('mc','ticker','BTCUSD');
const subscribeTow = new bitgetApi.default.SubscribeReq('SP','candle1W','BTCUSDT');
subArr.push(subscribeOne);
subArr.push(subscribeTow);
bitgetWsClient.subscribe(subArr)
FAQs
## 安装
We found that bitget-openapi-top demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.