Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Crypto
/
Crypto-auto-trading
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
2019102152 김다빈
2021-12-04 04:49:47 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
667421beeda074c17387c476938e750c1dbf8634
667421be
1 parent
edd4ba78
Add selling algorithm and Modify buying algorithm
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
index.js
models/Coin.js
models/User.js
index.js
View file @
667421b
This diff is collapsed. Click to expand it.
models/Coin.js
View file @
667421b
...
...
@@ -20,7 +20,11 @@ const coinSchema=mongoose.Schema({
type
:
Number
,
required
:
true
},
count
:{
up_count
:{
type
:
Number
,
default
:
0
},
down_count
:{
type
:
Number
,
default
:
0
}
...
...
models/User.js
View file @
667421b
...
...
@@ -11,7 +11,7 @@ const userSchema=mongoose.Schema({
type
:
String
,
},
count
:{
type
:
Number
,
type
:
Number
},
avg_buy_price
:{
type
:
Number
...
...
Please
register
or
login
to post a comment