Binance TypeScript SDK example: rest-spot-private-misc.ts
Binance REST Spot REST spot private misc example for the Siebly Binance SDK, with TypeScript source for exchange REST API and WebSocket integration, setup, and production SDK docs.
What This Example Covers
- Binance REST API example in TypeScript.
- Uses the Siebly Binance SDK package
binanceinstead of hand-written HTTP request plumbing. - Source path:
Binance/Rest/Spot/rest-spot-private-misc.ts. - Example category: REST Spot.
- Imports SDK symbols including
MainClient. - Calls SDK methods such as
getAccountStatus(),getApiTradingStatus(),getApiKeyPermissions().
How To Use This Example
- Start here for the specific request or stream pattern, then check the matching SDK guide for install, credentials, and operational notes.
- Open the repository source when you need the latest committed version: GitHub source file.
Example Path
Binance/Rest/Spot/rest-spot-private-misc.ts
Source Link
Repository source: https://github.com/sieblyio/crypto-api-examples/blob/master/examples/Binance/Rest/Spot/rest-spot-private-misc.ts
Related SDK Docs
Example Source
import { MainClient } from 'binance';
const key = 'APIKEY';
const secret = 'APISECRET';
const client = new MainClient({
api_key: key,
api_secret: secret,
});
(async () => {
try {
console.log('getAccountStatus: ', await client.getAccountStatus());
console.log('getApiTradingStatus: ', await client.getApiTradingStatus());
console.log('getApiKeyPermissions: ', await client.getApiKeyPermissions());
} catch (e) {
console.error('request failed: ', e);
}
})();