Skip to content
New issue

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

is there api to get permission? #60

Open
csquan opened this issue Nov 6, 2023 · 0 comments
Open

is there api to get permission? #60

csquan opened this issue Nov 6, 2023 · 0 comments

Comments

@csquan
Copy link

csquan commented Nov 6, 2023

is there api to get permission?like binance,
GET /sapi/v1/account/apiRestrictions,returns
{
"ipRestrict": false, // 是否限制ip访问
"createTime": 1623840271000, // 创建时间
"enableInternalTransfer": true, // 此选项授权此密钥在您的母账户和子账户之间划转资金
"enableFutures": false, // 合约交易权限,需注意开通合约账户之前创建的API Key不支持合约API功能
"enablePortfolioMarginTrading":true, // 统一账户交易权限
"enableVanillaOptions": false, // 欧式期权交易权限
"permitsUniversalTransfer": true, // 授权该密钥可用于专用的万向划转接口,用以操作其支持的多种类型资金划转。各业务自身的划转接口使用权限,不受本授权影响
"enableReading": true,
"enableSpotAndMarginTrading": false, // 现货和杠杆交易权限
"enableWithdrawals": false, // 此选项允许通过此api提现。开启提现选项必须添加IP访问限制过滤器
"enableMargin": false, // 此选项在全仓账户完成划转后可编辑
"tradingAuthorityExpirationTime": 1628985600000 // 现货和杠杆交易权限到期时间,如果没有则不返回该字段
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant