-
Notifications
You must be signed in to change notification settings - Fork 0
/
private.d.ts
28 lines (28 loc) · 2.29 KB
/
private.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Account } from './interfaces/account.interface';
import { BrokerageFee } from './interfaces/brokerage-fees.interface';
import { DepositAddress, DepositAddresses } from './interfaces/deposit-address.interface';
import { FiatWithdrawal } from './interfaces/fiat-withdrawal.interface';
import { Order, Orders } from './interfaces/orders.interface';
import { Trades } from './interfaces/trades.interface';
import { Transactions } from './interfaces/transactions-interface';
declare class Private {
private common;
constructor(publicKey?: string, privateKey?: string);
PlaceLimitOrder(primaryCurrencyCode: string, secondaryCurrencyCode: string, price: number, volume: number): Promise<Order>;
PlaceMarketOrder(primaryCurrencyCode: string, secondaryCurrencyCode: string, volume: number): Promise<Order>;
CancelOrder(orderGuid: string): Promise<Order>;
GetOpenOrders(primaryCurrencyCode: string, secondaryCurrencyCode: string, pageIndex: number, pageSize: number): Promise<Orders>;
GetClosedOrders(primaryCurrencyCode: string, secondaryCurrencyCode: string, pageIndex: number, pageSize: number): Promise<Orders>;
GetClosedFilledOrders(primaryCurrencyCode: string, secondaryCurrencyCode: string, pageIndex: number, pageSize: number): Promise<Orders>;
GetOrderDetails(orderGuid: string): Promise<Order>;
GetAccounts(): Promise<Account[]>;
GetTransactions(accountGuid: string, fromTimestampUtc: string, toTimestampUtc: string, txTypes: string[], pageIndex: number, pageSize: number): Promise<Transactions>;
GetDigitalCurrencyDepositAddress(primaryCurrencyCode: string): Promise<DepositAddress>;
GetDigitalCurrencyDepositAddresses(primaryCurrencyCode: string, pageIndex: number, pageSize: number): Promise<DepositAddresses>;
SynchDigitalCurrencyDepositAddressWithBlockchain(depositAddress: string, primaryCurrencyCode: string): Promise<DepositAddress>;
WithdrawDigitalCurrency(amount: number, withdrawalAddress: string, comment: string, primaryCurrencyCode: string): Promise<null>;
RequestFiatWithdrawal(secondaryCurrencyCode: string, withdrawalAmount: number, withdrawalBankAccountName: string, comment: string): Promise<FiatWithdrawal>;
GetTrades(pageIndex: number, pageSize: number): Promise<Trades>;
GetBrokerageFees(): Promise<BrokerageFee[]>;
}
export default Private;