Skip to content

Commit cec28d3

Browse files
committed
refactor: update models
1 parent 2474636 commit cec28d3

19 files changed

+227
-99
lines changed

lib/models/ACLSettings.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export interface ACLSettings {
2-
sub_account_id: string;
3-
deposit_address_generation_enabled: boolean;
4-
withdraw_enabled: boolean;
2+
SubAccountId: string;
3+
depositAddressGenerationEnabled: boolean;
4+
withdrawEnabled: boolean;
55
description: string;
6-
created_at: string;
7-
updated_at: string;
6+
createdAt: string;
7+
updatedAt: string;
88
}

lib/models/Address.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export interface Address {
22
address: string;
33
currency: string;
4-
payment_id: string;
5-
public_key: string;
6-
netwokd_code: string;
4+
paymentId: string;
5+
publicKey: string;
6+
netwokdCode: string;
77
}

lib/models/AmountLock.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ export interface AmountLock {
22
id: number;
33
currency: string;
44
amount: string;
5-
date_end: string;
5+
dateEnd: string;
66
description: string;
77
cancelled: boolean;
8-
cancelled_at: string;
9-
cancel_description: string;
10-
created_at: string;
8+
cancelledAt: string;
9+
cancelDescription: string;
10+
createdAt: string;
1111
}

lib/models/Balance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ export interface Balance {
22
currency: string;
33
available: string;
44
reserved: string;
5-
reserved_margin?: string;
5+
reservedMargin?: string;
66
}

lib/models/Candle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ export interface Candle {
55
min: string;
66
max: string;
77
volume: string;
8-
volume_quote: string;
8+
volumeQuote: string;
99
}

lib/models/Commission.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface Commission {
22
symbol: string;
3-
take_rate: string;
4-
make_rate: string;
3+
takeRate: string;
4+
makeRate: string;
55
}

lib/models/Currency.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { Network } from "./Network";
22

33
export interface Currency {
4-
full_name: string;
4+
fullName: string;
55
crypto: boolean;
6-
payin_enabled: boolean;
7-
payout_enabled: boolean;
8-
transfer_enabled: boolean;
9-
precision_transfer: string;
6+
payinEnabled: boolean;
7+
payoutEnabled: boolean;
8+
transferEnabled: boolean;
9+
precisionTransfer: string;
1010
sign: string;
11-
crypto_payment_id_name: string;
12-
crypto_explorer: string;
13-
account_top_order: number;
14-
qr_prefix: string;
11+
cryptoPaymentIdName: string;
12+
cryptoExplorer: string;
13+
accountTopOrder: number;
14+
qrPrefix: string;
1515
delisted: boolean;
16-
contract_address: string;
16+
contractAddress: string;
1717
networks: Network[];
1818
}
1919

lib/models/FeeRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export interface FeeRequest {
22
currency: string;
33
amount: string;
4-
network_code?: string;
4+
networkCode?: string;
55
}

lib/models/Network.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ export interface Network {
22
network: string;
33
protocol: string;
44
default: boolean;
5-
payin_enabled: boolean;
6-
payout_enabled: boolean;
7-
precision_payout: string;
8-
payout_fee: string;
9-
payout_is_payment_id: boolean;
10-
payin_payment_id: boolean;
11-
payin_confirmations: number;
12-
address_regrex: string;
13-
payment_id_regex: string;
14-
low_processing_time: string;
15-
high_processing_time: string;
16-
avg_processing_time: string;
5+
payinEnabled: boolean;
6+
payoutEnabled: boolean;
7+
precisionPayout: string;
8+
payoutFee: string;
9+
payoutIsPaymentId: boolean;
10+
payinPaymentId: boolean;
11+
payinConfirmations: number;
12+
addressRegrex: string;
13+
paymentIdRegex: string;
14+
lowProcessingTime: string;
15+
highProcessingTime: string;
16+
avgProcessingTime: string;
1717
}

lib/models/Order.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,38 @@ import {
88

99
export interface Order {
1010
id: number;
11-
client_order_id: string;
11+
clientOrderId: string;
1212
symbol: string;
1313
side: SIDE;
1414
status: ORDER_STATUS;
1515
type: ORDER_TYPE;
16-
time_in_force: TIME_IN_FORCE;
16+
timeInForce: TIME_IN_FORCE;
1717
quantity: string;
1818
price: string;
19-
quantity_cumulative: string;
20-
created_at: string;
21-
updated_at: string;
22-
expire_time: string;
23-
stop_price: string;
24-
post_only: boolean;
19+
quantityCumulative: string;
20+
createdAt: string;
21+
updatedAt: string;
22+
expireTime: string;
23+
stopPrice: string;
24+
postOnly: boolean;
2525
trades: string;
26-
original_client_order_id: string;
27-
order_list_id: string;
28-
contingency_type: CONTINGENCY;
26+
originalClientOrderId: string;
27+
orderListId: string;
28+
contingencyType: CONTINGENCY;
2929
}
3030

3131
export interface OrderRequest {
3232
symbol: string;
3333
side: SIDE;
3434
quantity: string;
35-
client_order_id?: string;
35+
clientOrderId?: string;
3636
type?: ORDER_TYPE;
37-
time_in_force?: TIME_IN_FORCE;
37+
timeInForce?: TIME_IN_FORCE;
3838
price?: string;
39-
stop_price?: string;
40-
expire_time?: string;
41-
strict_validate?: boolean;
42-
post_only?: boolean;
43-
take_rate?: string;
44-
make_rate?: string;
39+
stopPrice?: string;
40+
expireTime?: string;
41+
strictValidate?: boolean;
42+
postOnly?: boolean;
43+
takeRate?: string;
44+
makeRate?: string;
4545
}

0 commit comments

Comments
 (0)