-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cee0f12
commit e92aa2f
Showing
9 changed files
with
193 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
declare namespace Account { | ||
interface PostSubscribeBody { | ||
productId: number; | ||
promotionCode?: string; | ||
} | ||
interface SubscribeT { | ||
subscribeId: number; | ||
productName: string; | ||
expiryDate: string; | ||
} | ||
interface HoldingCoinRatioT { | ||
name: string; | ||
price: number; | ||
ratio: number; | ||
} | ||
interface TradeStyleT { | ||
tag: string[]; | ||
accountBalance: number; | ||
winRate: number; | ||
totalProfitLossRate: number; | ||
} | ||
interface AvailableBalanceT { | ||
exchangeName: string; | ||
availableBalance: number; | ||
} | ||
interface BotResultChartResponseT { | ||
botId: number; | ||
coinName: string; | ||
presetName: string; | ||
totalProfit: number; | ||
totalProfitRate: number; | ||
chartData: { | ||
date: string; | ||
price: string; | ||
rate: string; | ||
}[]; | ||
} | ||
interface BotResultChartT { | ||
botId: number; | ||
coinName: string; | ||
presetName: string; | ||
totalProfit: number; | ||
totalProfitRate: number; | ||
chartData: { | ||
date: string[]; | ||
price: number[]; | ||
rate: number[]; | ||
}; | ||
} | ||
interface BotResultDataT { | ||
totalTradePrice: { | ||
value: number; | ||
difference: number; | ||
}; | ||
totalTradeCount: { | ||
value: number; | ||
difference: number; | ||
}; | ||
maxProfitRate: { | ||
rate: number; | ||
presetName: string; | ||
coinName: string; | ||
}; | ||
maxWinRate: { | ||
rate: number; | ||
presetName: string; | ||
coinName: string; | ||
}; | ||
totalTradeBalance: number; | ||
} | ||
} |
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,49 @@ | ||
declare namespace Bot { | ||
interface PostBotStartBody { | ||
botName: string; | ||
presetId: number; | ||
coinId: number; | ||
startBalance: number; | ||
leverage: number | null; | ||
} | ||
interface InfoT { | ||
id: number; | ||
isRunning: boolean; | ||
presetName: string; | ||
startBalance: number; | ||
runningTime: number; | ||
coinType: string; | ||
} | ||
interface TransactionResponseT { | ||
id: number; | ||
exchange: string; | ||
date: string; | ||
coinName: string; | ||
position: string; | ||
totalPrice: number; | ||
volume: number; | ||
profitLoss: number; | ||
profitLossRate: number; | ||
startBalance: number; | ||
presetName: string; | ||
} | ||
interface TransactionT { | ||
id: number; | ||
market: string; | ||
tradeTime: string; | ||
coinName: string; | ||
status: string; | ||
quantity: { | ||
totalPrice: number; | ||
volume: number; | ||
}; | ||
price: { | ||
startBalance: number; | ||
presetName: string; | ||
}; | ||
profit: { | ||
profitLoss: number; | ||
profitLossRate: number; | ||
}; | ||
} | ||
} |
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,29 @@ | ||
declare namespace Common { | ||
interface RankingResponseT { | ||
id: number; | ||
rank: number; | ||
userName: string; | ||
exchangeName: string; | ||
coinName: string; | ||
profitLossRate: number; | ||
duration: number; | ||
presetData: string; | ||
} | ||
interface RankingT { | ||
id: number; | ||
rank: number; | ||
user: { | ||
icon: string; | ||
nickname: string; | ||
}; | ||
market: string; | ||
item: string; | ||
accumulatedProfit: number; | ||
period: number; | ||
presetData: string; | ||
} | ||
interface CoinT { | ||
id: number; | ||
coinName: 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,15 @@ | ||
type ExchangeType = "okx" | "upbit" | "binance" | "lbank"; | ||
|
||
type ExchangeParams = { | ||
exchange: ExchangeType; | ||
}; | ||
|
||
declare namespace ExchangeConnection { | ||
interface PostOkxOauthTokenBody { | ||
code: string; | ||
} | ||
|
||
interface PostSmartAccessResultBody { | ||
uid: 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,17 @@ | ||
declare namespace Preset { | ||
interface PostPresetBody { | ||
presetName: string; | ||
indicatorName: string; | ||
presetData: string; | ||
position: string; | ||
profitCutRate: number; | ||
lossCutRate: number; | ||
} | ||
interface PresetT extends PostPresetBody { | ||
id: number; | ||
} | ||
interface IndicatorT { | ||
id: number; | ||
indicatorName: 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,10 @@ | ||
interface ResponseT<Data> { | ||
data: Data; | ||
status: number; | ||
msg: string; | ||
} | ||
|
||
interface RequestT<Body, Params = undefined> { | ||
body: Body; | ||
params: Params; | ||
} |
This file was deleted.
Oops, something went wrong.
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