-
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.
chore: api response, request 타입 세팅 (#13)
- Loading branch information
1 parent
99a3623
commit 9e69970
Showing
6 changed files
with
42 additions
and
4 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
File renamed without changes.
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,5 @@ | ||
export interface EarningRate { | ||
asset: number; | ||
result: number; | ||
rate: string; | ||
} |
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,27 @@ | ||
export type ScenarioTickerRequest = { | ||
start_time: number; | ||
end_time: number; | ||
}; | ||
|
||
export type ScenariosTickerResponse = ScenariosTicker[]; | ||
|
||
export interface ScenariosTicker { | ||
code: 'BTC/KRW'; | ||
high: number; | ||
open: number; | ||
close: number; | ||
low: number; | ||
buySignal: number; // 주문 | ||
buyInfo: BuyInfo[]; // 채결 | ||
sellSignal: number; | ||
sellInfo: SellInfo[]; | ||
currentTime: number; | ||
hasMore: boolean; | ||
} | ||
|
||
export type BuyInfo = { | ||
price: number; | ||
amount: number; | ||
}; | ||
|
||
export type SellInfo = BuyInfo; |