We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to open a simple short position on coin-m futures
Here's the code: `const Binance = require('node-binance-api');
const binance = new Binance().options({ APIKEY: 'some api key', APISECRET: 'some secrets', 'family': 4, });
let temp = async () => { //console.info( await binance.universalTransfer("MAIN_CMFUTURE","XRP",10) ); console.info(await binance.deliveryMarginType("XRPUSD_PERP", "CROSSED")); console.info(await binance.deliveryLeverage("XRPUSD_PERP", 1)); console.info(await binance.deliveryMarketSell("XRPUSD_PERP", 70, { positionSide: "SHORT"})); }
temp(); `
I have also checked the balance, here is the result: [Object: null prototype] { asset: 'XRP', walletBalance: '104.91600000', unrealizedProfit: '0.00000000', marginBalance: '104.91600000', maintMargin: '0.00000000', initialMargin: '0.00000000', positionInitialMargin: '0.00000000', openOrderInitialMargin: '0.00000000', maxWithdrawAmount: '104.91600000', crossWalletBalance: '104.91600000', crossUnPnl: '0.00000000', availableBalance: '104.91600000', updateTime: 1696236724456 },
[Object: null prototype] { asset: 'XRP', walletBalance: '104.91600000', unrealizedProfit: '0.00000000', marginBalance: '104.91600000', maintMargin: '0.00000000', initialMargin: '0.00000000', positionInitialMargin: '0.00000000', openOrderInitialMargin: '0.00000000', maxWithdrawAmount: '104.91600000', crossWalletBalance: '104.91600000', crossUnPnl: '0.00000000', availableBalance: '104.91600000', updateTime: 1696236724456 },
Why is the margin insufficient?
The text was updated successfully, but these errors were encountered:
@jaggedsoft
Sorry, something went wrong.
No branches or pull requests
I am trying to open a simple short position on coin-m futures
Here's the code:
`const Binance = require('node-binance-api');
const binance = new Binance().options({
APIKEY: 'some api key',
APISECRET: 'some secrets',
'family': 4,
});
let temp = async () => {
//console.info( await binance.universalTransfer("MAIN_CMFUTURE","XRP",10) );
console.info(await binance.deliveryMarginType("XRPUSD_PERP", "CROSSED"));
console.info(await binance.deliveryLeverage("XRPUSD_PERP", 1));
console.info(await binance.deliveryMarketSell("XRPUSD_PERP", 70, { positionSide: "SHORT"}));
}
temp();
`
I have also checked the balance, here is the result:
[Object: null prototype] { asset: 'XRP', walletBalance: '104.91600000', unrealizedProfit: '0.00000000', marginBalance: '104.91600000', maintMargin: '0.00000000', initialMargin: '0.00000000', positionInitialMargin: '0.00000000', openOrderInitialMargin: '0.00000000', maxWithdrawAmount: '104.91600000', crossWalletBalance: '104.91600000', crossUnPnl: '0.00000000', availableBalance: '104.91600000', updateTime: 1696236724456 },
Why is the margin insufficient?
The text was updated successfully, but these errors were encountered: