@binance/margin-trading 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -19
- package/dist/index.d.mts +235 -422
- package/dist/index.d.ts +235 -422
- package/dist/index.js +66 -130
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -127
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -141,25 +141,6 @@ The REST API provides detailed error types to help you handle issues effectively
|
|
|
141
141
|
|
|
142
142
|
See the [Error Handling example](./docs/rest-api/error-handling.md) for detailed usage.
|
|
143
143
|
|
|
144
|
-
#### Testnet
|
|
145
|
-
|
|
146
|
-
For testing purposes, `/sapi/v1/margin/*`, `/sapi/v1/bnbBurn/*` and `/sapi/v1/userDataStream/*` endpoints can be used in the [Testnet](https://testnet.binance.vision/). Update the `basePath` in your configuration:
|
|
147
|
-
|
|
148
|
-
```typescript
|
|
149
|
-
import {
|
|
150
|
-
MarginTrading,
|
|
151
|
-
MarginTradingRestAPI,
|
|
152
|
-
MARGIN_TRADING_REST_API_TESTNET_URL,
|
|
153
|
-
} from '@binance/margin-trading';
|
|
154
|
-
|
|
155
|
-
const configurationRestAPI = {
|
|
156
|
-
apiKey: 'your-api-key',
|
|
157
|
-
apiSecret: 'your-api-secret',
|
|
158
|
-
basePath: MARGIN_TRADING_REST_API_TESTNET_URL,
|
|
159
|
-
};
|
|
160
|
-
const client = new MarginTrading({ configurationRestAPI });
|
|
161
|
-
```
|
|
162
|
-
|
|
163
144
|
If `basePath` is not provided, it defaults to `https://api.binance.com`.
|
|
164
145
|
|
|
165
146
|
## Testing
|