MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / mgTransferMarginToMain

Method mgTransferMarginToMain

src/node-binance-api.ts:5500–5503  ·  view source on GitHub ↗

* Transfer from margin account to main account * @param {string} asset - the asset * @param {number} amount - the asset * @return {undefined}

(asset: string, amount: number, params: Dict = {})

Source from the content-addressed store, hash-verified

5498 * @return {undefined}
5499 */
5500 async mgTransferMarginToMain(asset: string, amount: number, params: Dict = {}) {
5501 const parameters = Object.assign({ asset: asset, amount: amount, type: 2 });
5502 return await this.privateSapiRequest('v1/margin/transfer', this.extend(parameters, params), 'POST');
5503 }
5504 // /**
5505 // * Universal Transfer requires API permissions enabled
5506 // * @param {string} type - ENUM , example MAIN_UMFUTURE for SPOT to USDT futures, see https://binance-docs.github.io/apidocs/spot/en/#user-universal-transfer

Callers

nothing calls this directly

Calls 1

privateSapiRequestMethod · 0.95

Tested by

no test coverage detected