|
|
@@ -1,596 +1,200 @@
|
|
|
-import Service from '../lib/service'
|
|
|
-
|
|
|
-class IbService extends Service {
|
|
|
- constructor () {
|
|
|
- super()
|
|
|
- }
|
|
|
-
|
|
|
- /*MAM账户*/
|
|
|
-
|
|
|
- //审批子账号的挂入和撤销
|
|
|
- async MamSubsApprove (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/subs/approve", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //挂入或撤销子账户
|
|
|
- async MamSubsApply (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/subs/apply", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //获取可挂入或可撤销的子账户下拉列表
|
|
|
- async MamSubsInfo (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/subs/info", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //mam账户杠杆比例调整申请
|
|
|
- async MamLeverageApplyAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/leverage/apply/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //mam账号密码重置申请
|
|
|
- async MamPwdResetAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/pwd/reset/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //mam账户修改密码申请
|
|
|
- async MamRepwdAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/repwd/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //修改投资者密码
|
|
|
- async ChangeInvestorOassword (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/account/settings/change/investor/password/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //MAM账户列表
|
|
|
- async MamList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //审批mam账户
|
|
|
- async MamApplyApprove (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/approve", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //申请MAM账户
|
|
|
- async MamApplyAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //MAM账户创建基本信息
|
|
|
- async MamApplyData (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/data", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //账户申请前判断类型权限
|
|
|
- async excludeShowLogin (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/account/apply/exclude/show/login/type", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /*交易明细*/
|
|
|
-
|
|
|
- //挂单查询
|
|
|
- async TradePending (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/pending", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 持仓查询
|
|
|
- async TradePosition (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/position", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 交易历史
|
|
|
- async TradeHistory (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/sharding/history", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /* 内转 */
|
|
|
-
|
|
|
- // 内转
|
|
|
- async agentBalanceTransfer (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/transfer/add/imd", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 转出账户信息
|
|
|
- async agentBalanceTransferFrom (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/transfer/from", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 转入账户信息
|
|
|
- async agentTransferToList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/directAccount", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /* 申请日志 */
|
|
|
-
|
|
|
- //外佣调整申请列表
|
|
|
- async CommissionApplyRecording (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/commission/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金内转申请列表
|
|
|
- async agentBalanceTransferRecording (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/transfer/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //mam子账户挂入撤销列表
|
|
|
- async mamSubsApplyRecording (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/subs/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /*代理*/
|
|
|
-
|
|
|
- //代理界面表格下的基础数据
|
|
|
- async IbData (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/data", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下代理
|
|
|
- async IbSubs (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/subs", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 账户管理
|
|
|
- async accountSubs (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户
|
|
|
- async customerSubs (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/belongs", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户列表(用于下拉框)
|
|
|
- async customerSubsList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/belongs/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户统计
|
|
|
- async customerSubsStatistics (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/belongs/statistics", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户外佣调整
|
|
|
- async customCommissionApply (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/commission/apply/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户外佣调整
|
|
|
- async customCommissionPoint (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/update/point", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户转归属
|
|
|
- async accountBelongChange (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/belong/change/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 名下客户转归属-代理下拉
|
|
|
- async accountBelongChangeIb (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/belong/change/agents", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /*佣金模板*/
|
|
|
-
|
|
|
- //佣金模板列表
|
|
|
- async sysPointList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金模板列表删除
|
|
|
- async sysPointDelete (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/delete", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金模板列表编辑
|
|
|
- async sysPointUpdate (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/update", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金模板列表single
|
|
|
- async sysPointSingle (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/single", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //变更返佣申请
|
|
|
- async AgentPointChangeApply (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/point/change/apply", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取切换佣金模板时所需的数据
|
|
|
- async AgentPointChangeData (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/point/change/data", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //获取新增佣金模板时所需的下拉返点列表
|
|
|
- async SysPointPoints (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/points", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- //获取新增佣金模板时所需的下拉返点列表
|
|
|
- async SysCentValid (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/centValid", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 新增佣金模板
|
|
|
- async SysPointAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/sys/point/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取图表信息
|
|
|
- async getChartInfo (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/index/chart/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /* 报告 */
|
|
|
-
|
|
|
- //存取款
|
|
|
- async tradeDw (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/dw", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 交易账户
|
|
|
- async tradeAccount (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/account", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //代理佣金收入
|
|
|
- async tradeAgentCommission (params = {}, isVietnam = false) {
|
|
|
- let url = "/trade/agent/commission";
|
|
|
- if (isVietnam) {
|
|
|
- url = url + "/vn";
|
|
|
- }
|
|
|
- let res = await this.postAll("Host90", url, params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 新增代理
|
|
|
- async tradeIb (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/report/new", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //挂单历史
|
|
|
- async tradePendingHistory (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/pending/history", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 挂单查询
|
|
|
- async tradePending (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/pending", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //持仓查询
|
|
|
- async tradePosition (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/position", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 交易历史
|
|
|
- async tradeHistory (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/sharding/history", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 余额操作
|
|
|
- async ibReportBalance (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/report/balance", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 交易量
|
|
|
- async tradeSymbolCategory (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/symbol/category", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- /*ib申请记录列表*/
|
|
|
-
|
|
|
- //mam账户申请
|
|
|
- async mamApplyList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //mam账户杠杆申请
|
|
|
- async mamLeverageApplyList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/leverage/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金内转申请
|
|
|
- async agentBalanceTransferList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/transfer/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //外佣调整申请
|
|
|
- async customCommissionApplyList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/commission/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //归属调整申请
|
|
|
- async agentBelongChangeList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/belong/change/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //佣金分配申请
|
|
|
- async agentPointChangeList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/point/change/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //ib取款申请
|
|
|
- async agentWithdrawList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/finance/agent/withdraw/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //客户申请记录列表/4活动申请
|
|
|
- async CustomRecordAccount (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/custom/apply/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //根据条件查看拒绝列表-用于下拉和选择展示理由
|
|
|
- async reasonsRefusalList (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/reasons/refusal/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //根据条件查看ibno
|
|
|
- async ibTree (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/tree", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //是否可开代理
|
|
|
- async customUpdateIbInvalid (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/update/ibInvalid", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- // 代理内转
|
|
|
- // 获取账户列表-全部
|
|
|
- async CustomDropdown (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/account/dropdown", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取转入账户列表-全部
|
|
|
- async accountCustomList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/account/custom/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // ib内转
|
|
|
- async agentTransferApply (params = {}) {
|
|
|
- let res = await this.postAll("Host04","/agent/transfer/apply", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- async agentTransCtaferApply (params = {}) {
|
|
|
- let res = await this.postAll("Host04","/agent/transfer/cta/apply", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // ib内转列表
|
|
|
- async agentTransferList (params = {}) {
|
|
|
- let res = await this.postAll("Host04","/agent/transfer/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 经理人申请
|
|
|
- // ib是否可以申请pamm manager账号
|
|
|
- async mamApplyPammManagerValid (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/pammManagerValid", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 当前代理可申请pamm manager账号集合
|
|
|
- async mamApplyPammManagerLogins (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/pamm/logins", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 申请pamm manager账号
|
|
|
- async mamApplyPammManagerAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/mam/apply/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- //出金取消
|
|
|
- async withdrawCancel (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/finance/agent/withdraw/cancel", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //调整pm分成
|
|
|
- async applyPercent (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/pm/percent/change", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- //跟单
|
|
|
- //代理查看信号源列表
|
|
|
- async followDealAgentSearchList (params = {}) {
|
|
|
- let res = await this.postAll("Host87","/follow/deal/agent/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- //代理修改信号源
|
|
|
- async followDealAgentUpdate (params = {}) {
|
|
|
- let res = await this.postAll("Host87","/follow/deal/agent/update", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- //代理修改客户查看信号源权限
|
|
|
- async customUpdateFollowPermissionDisplay (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/info/update/follow/permissionDisplay", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- //代理修改客户查看信号源权限
|
|
|
- async marketAgentLinkList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/market/agent/link/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // MAM账户列表子账户
|
|
|
- async pammListSubs (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/pamm/subs", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- // 根据外俑和手续费获取值
|
|
|
- async customLink (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/register/link/hash", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- // 根据账户类型配置获取链接代码
|
|
|
- async customLinkCode (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/register/link/code", params);
|
|
|
- return res
|
|
|
- }
|
|
|
- // 代理开户设置开关
|
|
|
- async IbAgentSetting (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/agent/setting", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- //点差设置列表
|
|
|
- async loginTypeList (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/login/type/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 暗点返佣报表
|
|
|
- async tradeSalesHidden (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/trade/hidden/rebate", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- async getWebsdkLink1 (params = {}) {
|
|
|
- let res = await this.postAll("Host04","/agent/withdraw/getWebsdkLink", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取专属手续费分配数据
|
|
|
- async agentHiddenPointSearchSingle (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/hidden/point/search/single", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 添加专属手续费分配
|
|
|
- async agentHiddenPointAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/hidden/point/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // IB账户内转 - 获取代理账户树形数据
|
|
|
- async ibTreeForTransfer (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/ib/tree", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // IB账户内转 - 提交到代理账户
|
|
|
- async agentBalanceCommissionAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/commission/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // IB代理账户佣金内转列表
|
|
|
- async agentBalanceCommissionSearchList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/balance/commission/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取越南分配点数据
|
|
|
- async getVietnamPoints (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/point/vn/points", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 保存越南分配点数据
|
|
|
- async saveVietnamPoints (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/point/vn/save", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 新增开户链接
|
|
|
- async customLinkAdd (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/custom/link/add", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 开户链接列表
|
|
|
- async customLinkSearchList (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/agent/custom/link/search/list", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 获取开户链接账户类型列表
|
|
|
- async customLinkTypes (params = {}) {
|
|
|
- let res = await this.postAll("Host90","/custom/register/link/types", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-
|
|
|
- // 新增代理申请(带佣金模板)
|
|
|
- async agentApplyAddPoint (params = {}) {
|
|
|
- let res = await this.postAll("Host80","/agent/apply/add/point", params);
|
|
|
- return res
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-export default new IbService
|
|
|
+import { post } from '@/utils/request';
|
|
|
+
|
|
|
+/**
|
|
|
+ * IB代理相关接口集合
|
|
|
+ * 所有接口均为post请求,host参数已按原逻辑保留
|
|
|
+ */
|
|
|
+export const ibApi = {
|
|
|
+ /** 审批子账号的挂入和撤销 */
|
|
|
+ MamSubsApprove: (params = {}) => post('/mam/subs/approve', params, 'Host90'),
|
|
|
+ /** 挂入或撤销子账户 */
|
|
|
+ MamSubsApply: (params = {}) => post('/mam/subs/apply', params, 'Host90'),
|
|
|
+ /** 获取可挂入或可撤销的子账户下拉列表 */
|
|
|
+ MamSubsInfo: (params = {}) => post('/mam/subs/info', params, 'Host90'),
|
|
|
+ /** mam账户杠杆比例调整申请 */
|
|
|
+ MamLeverageApplyAdd: (params = {}) => post('/mam/leverage/apply/add', params, 'Host90'),
|
|
|
+ /** mam账号密码重置申请 */
|
|
|
+ MamPwdResetAdd: (params = {}) => post('/mam/pwd/reset/add', params, 'Host90'),
|
|
|
+ /** mam账户修改密码申请 */
|
|
|
+ MamRepwdAdd: (params = {}) => post('/mam/repwd/add', params, 'Host90'),
|
|
|
+ /** 修改投资者密码 */
|
|
|
+ ChangeInvestorOassword: (params = {}) => post('/account/settings/change/investor/password/add', params, 'Host80'),
|
|
|
+ /** MAM账户列表 */
|
|
|
+ MamList: (params = {}) => post('/mam/list', params, 'Host90'),
|
|
|
+ /** 审批mam账户 */
|
|
|
+ MamApplyApprove: (params = {}) => post('/mam/apply/approve', params, 'Host90'),
|
|
|
+ /** 申请MAM账户 */
|
|
|
+ MamApplyAdd: (params = {}) => post('/mam/apply/add', params, 'Host90'),
|
|
|
+ /** MAM账户创建基本信息 */
|
|
|
+ MamApplyData: (params = {}) => post('/mam/apply/data', params, 'Host90'),
|
|
|
+ /** 账户申请前判断类型权限 */
|
|
|
+ excludeShowLogin: (params = {}) => post('/account/apply/exclude/show/login/type', params, 'Host80'),
|
|
|
+ /** 挂单查询 */
|
|
|
+ TradePending: (params = {}) => post('/trade/pending', params, 'Host90'),
|
|
|
+ /** 持仓查询 */
|
|
|
+ TradePosition: (params = {}) => post('/trade/position', params, 'Host90'),
|
|
|
+ /** 交易历史 */
|
|
|
+ TradeHistory: (params = {}) => post('/trade/sharding/history', params, 'Host90'),
|
|
|
+ /** 内转 */
|
|
|
+ agentBalanceTransfer: (params = {}) => post('/agent/balance/transfer/add/imd', params, 'Host90'),
|
|
|
+ /** 转出账户信息 */
|
|
|
+ agentBalanceTransferFrom: (params = {}) => post('/agent/balance/transfer/from', params, 'Host90'),
|
|
|
+ /** 转入账户信息 */
|
|
|
+ agentTransferToList: (params = {}) => post('/account/directAccount', params, 'Host90'),
|
|
|
+ /** 外佣调整申请列表 */
|
|
|
+ CommissionApplyRecording: (params = {}) => post('/custom/commission/apply/list', params, 'Host90'),
|
|
|
+ /** 佣金内转申请列表 */
|
|
|
+ agentBalanceTransferRecording: (params = {}) => post('/agent/balance/transfer/search/list', params, 'Host90'),
|
|
|
+ /** mam子账户挂入撤销列表 */
|
|
|
+ mamSubsApplyRecording: (params = {}) => post('/mam/subs/apply/list', params, 'Host90'),
|
|
|
+ /** 代理界面表格下的基础数据 */
|
|
|
+ IbData: (params = {}) => post('/ib/data', params, 'Host90'),
|
|
|
+ /** 名下代理 */
|
|
|
+ IbSubs: (params = {}) => post('/ib/subs', params, 'Host90'),
|
|
|
+ /** 账户管理 */
|
|
|
+ accountSubs: (params = {}) => post('/account/list', params, 'Host90'),
|
|
|
+ /** 名下客户 */
|
|
|
+ customerSubs: (params = {}) => post('/custom/info/belongs', params, 'Host90'),
|
|
|
+ /** 名下客户列表(用于下拉框) */
|
|
|
+ customerSubsList: (params = {}) => post('/custom/info/belongs/list', params, 'Host90'),
|
|
|
+ /** 名下客户统计 */
|
|
|
+ customerSubsStatistics: (params = {}) => post('/custom/info/belongs/statistics', params, 'Host90'),
|
|
|
+ /** 名下客户外佣调整 */
|
|
|
+ customCommissionApply: (params = {}) => post('/custom/commission/apply/add', params, 'Host90'),
|
|
|
+ /** 名下客户外佣调整 */
|
|
|
+ customCommissionPoint: (params = {}) => post('/custom/info/update/point', params, 'Host90'),
|
|
|
+ /** 名下客户转归属 */
|
|
|
+ accountBelongChange: (params = {}) => post('/account/belong/change/add', params, 'Host90'),
|
|
|
+ /** 名下客户转归属-代理下拉 */
|
|
|
+ accountBelongChangeIb: (params = {}) => post('/account/belong/change/agents', params, 'Host90'),
|
|
|
+ /** 佣金模板列表 */
|
|
|
+ sysPointList: (params = {}) => post('/sys/point/list', params, 'Host90'),
|
|
|
+ /** 佣金模板列表删除 */
|
|
|
+ sysPointDelete: (params = {}) => post('/sys/point/delete', params, 'Host90'),
|
|
|
+ /** 佣金模板列表编辑 */
|
|
|
+ sysPointUpdate: (params = {}) => post('/sys/point/update', params, 'Host90'),
|
|
|
+ /** 佣金模板列表single */
|
|
|
+ sysPointSingle: (params = {}) => post('/sys/point/single', params, 'Host90'),
|
|
|
+ /** 变更返佣申请 */
|
|
|
+ AgentPointChangeApply: (params = {}) => post('/agent/point/change/apply', params, 'Host90'),
|
|
|
+ /** 获取切换佣金模板时所需的数据 */
|
|
|
+ AgentPointChangeData: (params = {}) => post('/agent/point/change/data', params, 'Host90'),
|
|
|
+ /** 获取新增佣金模板时所需的下拉返点列表 */
|
|
|
+ SysPointPoints: (params = {}) => post('/sys/point/points', params, 'Host90'),
|
|
|
+ /** 获取新增佣金模板时所需的下拉返点列表 */
|
|
|
+ SysCentValid: (params = {}) => post('/sys/point/centValid', params, 'Host90'),
|
|
|
+ /** 新增佣金模板 */
|
|
|
+ SysPointAdd: (params = {}) => post('/sys/point/add', params, 'Host90'),
|
|
|
+ /** 获取图表信息 */
|
|
|
+ getChartInfo: (params = {}) => post('/index/chart/list', params, 'Host80'),
|
|
|
+ /** 存取款 */
|
|
|
+ tradeDw: (params = {}) => post('/trade/dw', params, 'Host90'),
|
|
|
+ /** 交易账户 */
|
|
|
+ tradeAccount: (params = {}) => post('/trade/account', params, 'Host90'),
|
|
|
+ /** 代理佣金收入 */
|
|
|
+ tradeAgentCommission: (params = {}, isVietnam = false) => {
|
|
|
+ let url = '/trade/agent/commission';
|
|
|
+ if (isVietnam) url += '/vn';
|
|
|
+ return post(url, params, 'Host90');
|
|
|
+ },
|
|
|
+ /** 新增代理 */
|
|
|
+ tradeIb: (params = {}) => post('/ib/report/new', params, 'Host90'),
|
|
|
+ /** 挂单历史 */
|
|
|
+ tradePendingHistory: (params = {}) => post('/trade/pending/history', params, 'Host90'),
|
|
|
+ /** 挂单查询 */
|
|
|
+ tradePending: (params = {}) => post('/trade/pending', params, 'Host90'),
|
|
|
+ /** 持仓查询 */
|
|
|
+ tradePosition: (params = {}) => post('/trade/position', params, 'Host90'),
|
|
|
+ /** 交易历史 */
|
|
|
+ tradeHistory: (params = {}) => post('/trade/sharding/history', params, 'Host90'),
|
|
|
+ /** 余额操作 */
|
|
|
+ ibReportBalance: (params = {}) => post('/ib/report/balance', params, 'Host90'),
|
|
|
+ /** 交易量 */
|
|
|
+ tradeSymbolCategory: (params = {}) => post('/trade/symbol/category', params, 'Host90'),
|
|
|
+ /** mam账户申请 */
|
|
|
+ mamApplyList: (params = {}) => post('/mam/apply/list', params, 'Host90'),
|
|
|
+ /** mam账户杠杆申请 */
|
|
|
+ mamLeverageApplyList: (params = {}) => post('/mam/leverage/apply/list', params, 'Host90'),
|
|
|
+ /** 佣金内转申请 */
|
|
|
+ agentBalanceTransferList: (params = {}) => post('/agent/balance/transfer/search/list', params, 'Host90'),
|
|
|
+ /** 外佣调整申请 */
|
|
|
+ customCommissionApplyList: (params = {}) => post('/custom/commission/apply/list', params, 'Host90'),
|
|
|
+ /** 归属调整申请 */
|
|
|
+ agentBelongChangeList: (params = {}) => post('/account/belong/change/search/list', params, 'Host90'),
|
|
|
+ /** 佣金分配申请 */
|
|
|
+ agentPointChangeList: (params = {}) => post('/agent/point/change/list', params, 'Host90'),
|
|
|
+ /** ib取款申请 */
|
|
|
+ agentWithdrawList: (params = {}) => post('/finance/agent/withdraw/search/list', params, 'Host90'),
|
|
|
+ /** 客户申请记录列表/4活动申请 */
|
|
|
+ CustomRecordAccount: (params = {}) => post('/custom/apply/list', params, 'Host80'),
|
|
|
+ /** 根据条件查看拒绝列表-用于下拉和选择展示理由 */
|
|
|
+ reasonsRefusalList: (params = {}) => post('/reasons/refusal/list', params, 'Host80'),
|
|
|
+ /** 根据条件查看ibno */
|
|
|
+ ibTree: (params = {}) => post('/ib/tree', params, 'Host90'),
|
|
|
+ /** 是否可开代理 */
|
|
|
+ customUpdateIbInvalid: (params = {}) => post('/custom/info/update/ibInvalid', params, 'Host90'),
|
|
|
+ /** 获取账户列表-全部 */
|
|
|
+ CustomDropdown: (params = {}) => post('/account/dropdown', params, 'Host80'),
|
|
|
+ /** 获取转入账户列表-全部 */
|
|
|
+ accountCustomList: (params = {}) => post('/account/custom/list', params, 'Host90'),
|
|
|
+ /** ib内转 */
|
|
|
+ agentTransferApply: (params = {}) => post('/agent/transfer/apply', params, 'Host04'),
|
|
|
+ /** ib内转CTA */
|
|
|
+ agentTransCtaferApply: (params = {}) => post('/agent/transfer/cta/apply', params, 'Host04'),
|
|
|
+ /** ib内转列表 */
|
|
|
+ agentTransferList: (params = {}) => post('/agent/transfer/list', params, 'Host04'),
|
|
|
+ /** ib是否可以申请pamm manager账号 */
|
|
|
+ mamApplyPammManagerValid: (params = {}) => post('/mam/apply/pammManagerValid', params, 'Host90'),
|
|
|
+ /** 当前代理可申请pamm manager账号集合 */
|
|
|
+ mamApplyPammManagerLogins: (params = {}) => post('/mam/apply/pamm/logins', params, 'Host90'),
|
|
|
+ /** 申请pamm manager账号 */
|
|
|
+ mamApplyPammManagerAdd: (params = {}) => post('/mam/apply/add', params, 'Host90'),
|
|
|
+ /** 出金取消 */
|
|
|
+ withdrawCancel: (params = {}) => post('/finance/agent/withdraw/cancel', params, 'Host90'),
|
|
|
+ /** 调整pm分成 */
|
|
|
+ applyPercent: (params = {}) => post('/pm/percent/change', params, 'Host90'),
|
|
|
+ /** 代理查看信号源列表 */
|
|
|
+ followDealAgentSearchList: (params = {}) => post('/follow/deal/agent/search/list', params, 'Host87'),
|
|
|
+ /** 代理修改信号源 */
|
|
|
+ followDealAgentUpdate: (params = {}) => post('/follow/deal/agent/update', params, 'Host87'),
|
|
|
+ /** 代理修改客户查看信号源权限 */
|
|
|
+ customUpdateFollowPermissionDisplay: (params = {}) => post('/custom/info/update/follow/permissionDisplay', params, 'Host90'),
|
|
|
+ /** 代理修改客户查看信号源权限 */
|
|
|
+ marketAgentLinkList: (params = {}) => post('/market/agent/link/list', params, 'Host90'),
|
|
|
+ /** MAM账户列表子账户 */
|
|
|
+ pammListSubs: (params = {}) => post('/pamm/subs', params, 'Host90'),
|
|
|
+ /** 根据外佣和手续费获取值 */
|
|
|
+ customLink: (params = {}) => post('/custom/register/link/hash', params, 'Host90'),
|
|
|
+ /** 根据账户类型配置获取链接代码 */
|
|
|
+ customLinkCode: (params = {}) => post('/custom/register/link/code', params, 'Host90'),
|
|
|
+ /** 代理开户设置开关 */
|
|
|
+ IbAgentSetting: (params = {}) => post('/ib/agent/setting', params, 'Host90'),
|
|
|
+ /** 点差设置列表 */
|
|
|
+ loginTypeList: (params = {}) => post('/login/type/search/list', params, 'Host80'),
|
|
|
+ /** 暗点返佣报表 */
|
|
|
+ tradeSalesHidden: (params = {}) => post('/trade/hidden/rebate', params, 'Host90'),
|
|
|
+ /** 获取Websdk链接 */
|
|
|
+ getWebsdkLink1: (params = {}) => post('/agent/withdraw/getWebsdkLink', params, 'Host04'),
|
|
|
+ /** 获取专属手续费分配数据 */
|
|
|
+ agentHiddenPointSearchSingle: (params = {}) => post('/agent/hidden/point/search/single', params, 'Host90'),
|
|
|
+ /** 添加专属手续费分配 */
|
|
|
+ agentHiddenPointAdd: (params = {}) => post('/agent/hidden/point/add', params, 'Host90'),
|
|
|
+ /** IB账户内转 - 获取代理账户树形数据 */
|
|
|
+ ibTreeForTransfer: (params = {}) => post('/ib/tree', params, 'Host90'),
|
|
|
+ /** IB账户内转 - 提交到代理账户 */
|
|
|
+ agentBalanceCommissionAdd: (params = {}) => post('/agent/balance/commission/add', params, 'Host90'),
|
|
|
+ /** IB代理账户佣金内转列表 */
|
|
|
+ agentBalanceCommissionSearchList: (params = {}) => post('/agent/balance/commission/search/list', params, 'Host90'),
|
|
|
+ /** 获取越南分配点数据 */
|
|
|
+ getVietnamPoints: (params = {}) => post('/agent/point/vn/points', params, 'Host90'),
|
|
|
+ /** 保存越南分配点数据 */
|
|
|
+ saveVietnamPoints: (params = {}) => post('/agent/point/vn/save', params, 'Host90'),
|
|
|
+ /** 新增开户链接 */
|
|
|
+ customLinkAdd: (params = {}) => post('/agent/custom/link/add', params, 'Host90'),
|
|
|
+ /** 开户链接列表 */
|
|
|
+ customLinkSearchList: (params = {}) => post('/agent/custom/link/search/list', params, 'Host90'),
|
|
|
+ /** 获取开户链接账户类型列表 */
|
|
|
+ customLinkTypes: (params = {}) => post('/custom/register/link/types', params, 'Host90'),
|
|
|
+ /** 新增代理申请(带佣金模板) */
|
|
|
+ agentApplyAddPoint: (params = {}) => post('/agent/apply/add/point', params, 'Host80'),
|
|
|
+};
|