Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wmvm
ts-api-demo
Commits
849b087c
Commit
849b087c
authored
Nov 21, 2024
by
1486327116
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加代理相关接口
parent
390ab468
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
contractAgent.service.ts
src/functional/mvc/service/contractAgent.service.ts
+2
-2
index.ts
src/functional/router/v1/index.ts
+3
-3
access-limit.ts
src/setting/access-limit.ts
+2
-0
No files found.
src/functional/mvc/service/contractAgent.service.ts
View file @
849b087c
...
...
@@ -34,7 +34,7 @@ export interface AgentUserVO {
ratio
?:
number
;
symbol
?:
string
;
product
?:
string
;
createdAt
?:
Date
|
any
,
...
...
@@ -96,7 +96,7 @@ export async function agentSet(user_id: any, currentUserId: any, ip: string | un
export
async
function
hedgeRatioSet
(
agentUserVO
:
AgentUserVO
,
currentUserId
:
any
,
ip
:
string
|
undefined
)
{
let
agent_id
=
agentUserVO
.
agent_id
;
let
symbol
=
agentUserVO
.
symbol
;
let
symbol
=
agentUserVO
.
product
;
let
ratio
=
agentUserVO
.
ratio
;
let
market
=
"lpc"
// 固定 只有合约才对冲设置
...
...
src/functional/router/v1/index.ts
View file @
849b087c
...
...
@@ -224,9 +224,9 @@ const postFunc = {
'fiance/other/contract/limit/trade/set'
:
contractLimitTradeCtrl
.
set
,
'fiance/other/contract/limit/trade/list'
:
contractLimitTradeCtrl
.
list
,
//金融部-其他管理-合约接单账户配置(代理商)
'fiance/other/contract/agent/set'
:
contractAgentCtrl
.
agentSet
,
'fiance/other/contract/agent/list'
:
contractAgentCtrl
.
agentList
,
'fiance/other/contract/agent/hedgeRatio/set'
:
contractAgentCtrl
.
hedgeRatioSet
,
'fiance/other/contract/agent/set'
:
contractAgentCtrl
.
agentSet
,
// 参数只保留user_id
'fiance/other/contract/agent/list'
:
contractAgentCtrl
.
agentList
,
// 返回值只有user_id agent_id 时间
'fiance/other/contract/agent/hedgeRatio/set'
:
contractAgentCtrl
.
hedgeRatioSet
,
// 給代理商添加对冲配置参数 agent_id symbol(合约交易对) ratio对冲比例0-1之间
'fiance/other/contract/agent/hedgeRatio/list'
:
contractAgentCtrl
.
hedgeRatioList
,
//金融部-其他管理-合约接单账户关联(代理用户)
...
...
src/setting/access-limit.ts
View file @
849b087c
...
...
@@ -168,6 +168,8 @@ let cmdWhiteList = {
'fiance/other/contract/limit/trade/set'
:
1
,
'fiance/other/contract/limit/trade/list'
:
1
,
//金融部-其他管理-合约接单账户配置(代理商)
'fiance/other/contract/agent/hedgeRatio/set'
:
1
,
'fiance/other/contract/agent/hedgeRatio/list'
:
1
,
'fiance/other/contract/agent/set'
:
1
,
'fiance/other/contract/agent/list'
:
1
,
//金融部-其他管理-合约接单账户关联(代理用户)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment