-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added streaming api and increased version to 1.1.0
- Loading branch information
galimru
committed
Dec 18, 2020
1 parent
f91f7c1
commit 9f03ea1
Showing
28 changed files
with
891 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
src/main/java/com/github/galimru/tinkoff/json/streaming/CandleEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
package com.github.galimru.tinkoff.json.streaming; | ||
|
||
import com.github.galimru.tinkoff.json.market.CandleResolution; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Date; | ||
|
||
public class CandleEvent { | ||
|
||
private String figi; | ||
private CandleResolution interval; | ||
@SerializedName("o") | ||
private BigDecimal open; | ||
@SerializedName("c") | ||
private BigDecimal close; | ||
@SerializedName("h") | ||
private BigDecimal high; | ||
@SerializedName("l") | ||
private BigDecimal low; | ||
@SerializedName("v") | ||
private Integer volume; | ||
private Date time; | ||
|
||
public String getFigi() { | ||
return figi; | ||
} | ||
|
||
public void setFigi(String figi) { | ||
this.figi = figi; | ||
} | ||
|
||
public CandleResolution getInterval() { | ||
return interval; | ||
} | ||
|
||
public void setInterval(CandleResolution interval) { | ||
this.interval = interval; | ||
} | ||
|
||
public BigDecimal getOpen() { | ||
return open; | ||
} | ||
|
||
public void setOpen(BigDecimal open) { | ||
this.open = open; | ||
} | ||
|
||
public BigDecimal getClose() { | ||
return close; | ||
} | ||
|
||
public void setClose(BigDecimal close) { | ||
this.close = close; | ||
} | ||
|
||
public BigDecimal getHigh() { | ||
return high; | ||
} | ||
|
||
public void setHigh(BigDecimal high) { | ||
this.high = high; | ||
} | ||
|
||
public BigDecimal getLow() { | ||
return low; | ||
} | ||
|
||
public void setLow(BigDecimal low) { | ||
this.low = low; | ||
} | ||
|
||
public Integer getVolume() { | ||
return volume; | ||
} | ||
|
||
public void setVolume(Integer volume) { | ||
this.volume = volume; | ||
} | ||
|
||
public Date getTime() { | ||
return time; | ||
} | ||
|
||
public void setTime(Date time) { | ||
this.time = time; | ||
} | ||
} |
Oops, something went wrong.