[09.07.20] Removed Ask and Bid
This commit is contained in:
parent
f40ba955ae
commit
c7f40c95d2
@ -31,12 +31,6 @@ public class CryptoPriceModel {
|
|||||||
@Column(name = "l_price", nullable = false)
|
@Column(name = "l_price", nullable = false)
|
||||||
private float low_price;
|
private float low_price;
|
||||||
|
|
||||||
@Column(name = "a_price", nullable = false)
|
|
||||||
private float ask_price;
|
|
||||||
|
|
||||||
@Column(name = "b_price", nullable = false)
|
|
||||||
private float bid_price;
|
|
||||||
|
|
||||||
@Column(name = "o_price")
|
@Column(name = "o_price")
|
||||||
private float open_price;
|
private float open_price;
|
||||||
|
|
||||||
|
|||||||
@ -18,11 +18,9 @@ public class BtcPriceMutation implements GraphQLMutationResolver {
|
|||||||
final float h_price,
|
final float h_price,
|
||||||
final float l_price,
|
final float l_price,
|
||||||
final float o_price,
|
final float o_price,
|
||||||
final float a_price,
|
|
||||||
final float b_price,
|
|
||||||
final float c_price,
|
final float c_price,
|
||||||
final float volume ) {
|
final float volume ) {
|
||||||
return this.btcPriceService.createBtc(createdDate, type, av_price, h_price, l_price, a_price, b_price, o_price, c_price, volume);
|
return this.btcPriceService.createBtc(createdDate, type, av_price, h_price, l_price, o_price, c_price, volume);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,8 +27,6 @@ public class BtcPriceService {
|
|||||||
final float av_price,
|
final float av_price,
|
||||||
final float h_price,
|
final float h_price,
|
||||||
final float l_price,
|
final float l_price,
|
||||||
final float a_price,
|
|
||||||
final float b_price,
|
|
||||||
final float o_price,
|
final float o_price,
|
||||||
final float c_price,
|
final float c_price,
|
||||||
final float volume ) {
|
final float volume ) {
|
||||||
@ -39,8 +37,6 @@ public class BtcPriceService {
|
|||||||
btcPrice.setAverage_price(av_price);
|
btcPrice.setAverage_price(av_price);
|
||||||
btcPrice.setHigh_price(h_price);
|
btcPrice.setHigh_price(h_price);
|
||||||
btcPrice.setLow_price(l_price);
|
btcPrice.setLow_price(l_price);
|
||||||
btcPrice.setAsk_price(a_price);
|
|
||||||
btcPrice.setBid_price(b_price);
|
|
||||||
btcPrice.setOpen_price(o_price);
|
btcPrice.setOpen_price(o_price);
|
||||||
btcPrice.setClose_price(c_price);
|
btcPrice.setClose_price(c_price);
|
||||||
btcPrice.setVolume(volume);
|
btcPrice.setVolume(volume);
|
||||||
|
|||||||
@ -12,7 +12,7 @@ spring:
|
|||||||
platform: postgres
|
platform: postgres
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: validate
|
ddl-auto: create-drop
|
||||||
show-sql: true
|
show-sql: true
|
||||||
properties:
|
properties:
|
||||||
org.hibernate.envers.revision_field_name: revision_id
|
org.hibernate.envers.revision_field_name: revision_id
|
||||||
|
|||||||
@ -5,8 +5,6 @@ type BtcPrice {
|
|||||||
average_price: Float!,
|
average_price: Float!,
|
||||||
high_price: Float,
|
high_price: Float,
|
||||||
low_price: Float,
|
low_price: Float,
|
||||||
ask_price: Float,
|
|
||||||
bid_price: Float,
|
|
||||||
open_price: Float,
|
open_price: Float,
|
||||||
close_price: Float,
|
close_price: Float,
|
||||||
volume: Float
|
volume: Float
|
||||||
@ -37,6 +35,6 @@ type Query {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBtc(createdDate: String!, type: String!, average_price: Float!, high_price: Float, low_price: Float, ask_price: Float, bid_price: Float, open_price: Float, close_price: Float, volume: Float):BtcPrice
|
createBtc(createdDate: String!, type: String!, average_price: Float!, high_price: Float, low_price: Float, open_price: Float, close_price: Float, volume: Float):BtcPrice
|
||||||
createTweet(createdDate: String!, rawTweet: String!, sentimentScore: Float!, positiveScore: Float, neutralScore: Float, negativeScore: Float, compoundScore: Float!):tweetModel
|
createTweet(createdDate: String!, rawTweet: String!, sentimentScore: Float!, positiveScore: Float, neutralScore: Float, negativeScore: Float, compoundScore: Float!):tweetModel
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user