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
55d54ab4
Commit
55d54ab4
authored
Sep 07, 2024
by
1486327116
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fills 查询
parent
af8146a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
coreSystemUtils.ts
src/utils/coreSystemUtils.ts
+22
-0
No files found.
src/utils/coreSystemUtils.ts
View file @
55d54ab4
...
@@ -89,6 +89,28 @@ export const getUserOrdersFromCore = async(params)=> {
...
@@ -89,6 +89,28 @@ export const getUserOrdersFromCore = async(params)=> {
return
data
return
data
}
}
// user_id
// status, // 必须 unsettled或者settled
// symbol, // 可选,交易对
// start_time, // 成交时间
// end_time, // 成交时间
// before, // update_id
// after, // update_id
// limit, / 数量
// order_id 可选
export
const
getUserFillsFromCore
=
async
(
params
)
=>
{
// let params = new URLSearchParams();
const
url
=
`
${
webadmin_endpoint
}
/fill/list`
let
{
data
}
=
await
axios
.
get
(
url
,{
params
});
if
(
data
.
error
)
{
logger
.
error
(
"getPairFromCore"
,
data
);
return
null
}
console
.
log
(
data
)
return
data
}
// getUserOrdersFromCore({user_id:1})
// getUserOrdersFromCore({user_id:1})
export
const
addCoin2Core
=
async
(
symbol
,
id
)
=>
{
export
const
addCoin2Core
=
async
(
symbol
,
id
)
=>
{
...
...
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