2019102152 김다빈

Add selling algorithm and Modify buying algorithm

This diff is collapsed. Click to expand it.
......@@ -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
}
......
......@@ -11,7 +11,7 @@ const userSchema=mongoose.Schema({
type:String,
},
count:{
type:Number,
type:Number
},
avg_buy_price:{
type:Number
......