-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
9 changed files
with
98 additions
and
0 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,9 @@ | ||
interface BalanceDetails { | ||
available: string; | ||
locked: string; | ||
staked: string; | ||
} | ||
|
||
export interface BalancesResponse { | ||
[property: string]: BalanceDetails; | ||
} |
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,20 @@ | ||
interface DepositResponse { | ||
id: number; | ||
toAddress: string; | ||
fromAddress: string; | ||
confirmationBlockNumber: number; | ||
providerId: string; | ||
source: string; | ||
status: string; | ||
transactionHash: string; | ||
subaccountId: number; | ||
symbol: string; | ||
quantity: string; | ||
createdAt: string; | ||
} | ||
|
||
export interface DepositAddressResponse { | ||
address: string; | ||
} | ||
|
||
export interface DepositsResponse extends Array<DepositResponse> {} |
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,14 @@ | ||
interface FillHistory { | ||
tradeId: number; | ||
orderId: string; | ||
symbol: string; | ||
side: string; | ||
price: string; | ||
quantity: string; | ||
fee: string; | ||
feeSymbol: string; | ||
isMaker: boolean; | ||
timestamp: string; | ||
} | ||
|
||
export interface FillHistoryResponse extends Array<FillHistory> {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { OrderType } from "../order-type"; | ||
import { Side } from "../side"; | ||
|
||
interface OrderResponse { | ||
orderType: OrderType; | ||
id: string; | ||
clientId: number; | ||
symbol: string; | ||
side: Side; | ||
quantity: string; | ||
executedQuantity: string; | ||
quoteQuantity: string; | ||
executedQuoteQuantity: string; | ||
triggerPrice: string; | ||
timeInForce: string; | ||
selfTradePrevention: string; | ||
status: string; | ||
createdAt: number; | ||
} | ||
|
||
export interface OrderHistoryResponse | ||
extends Omit<OrderResponse, "executedQuantity" | "executedQuoteQuantity"> { | ||
price: string; | ||
postOnly: boolean; | ||
} | ||
|
||
export interface OpenOrderResponse extends OrderResponse {} | ||
export interface CancelOrderResponse extends OrderResponse {} | ||
export interface ExecuteOrderResponse extends OrderResponse {} | ||
|
||
export interface OpenOrdersResponse extends Array<OrderResponse> {} | ||
export interface CancelOrdersResponse extends Array<OrderResponse> {} |
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,16 @@ | ||
interface Withdrawal { | ||
id: number; | ||
blockchain: string; | ||
clientId: string; | ||
identifier: string; | ||
quantity: string; | ||
fee: string; | ||
symbol: string; | ||
status: string; | ||
subaccountId: number; | ||
toAddress: string; | ||
transactionHash: string; | ||
createdAt: string; | ||
} | ||
|
||
export interface WithdrawalsResponse extends Array<Withdrawal> {} |
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 @@ | ||
export type OrderType = "Limit" | "Market"; |
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 @@ | ||
export type Side = "Bid" | "Ask"; |