Skip to content

Commit af09488

Browse files
committed
Add Field “available_to_withdraw” to AccountResponse, AccountInfoResponse
1 parent 6302d0e commit af09488

5 files changed

Lines changed: 7 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pacifica_rust_sdk"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2024"
55
authors = ["Neiroleptik"]
66
description = "Rust SDK for pacifica.fi exchange"

docs/websocket/subscriptions/account-info.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ AccountInfoResponse {
4242
pub account_equity: Decimal,
4343
#[serde(rename = "as")]
4444
pub available_to_spend: Decimal,
45+
#[serde(rename = "aw")]
46+
pub available_to_withdraw: Decimal,
4547
#[serde(rename = "b")]
4648
pub balance: Decimal,
4749
#[serde(rename = "f")]

src/bin/ws_exchange.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async fn main() {
7575
price: normalized_price,
7676
amount: normalized_amount,
7777
side: OrderSide::Bid,
78-
tif: Tif::ALO,
78+
tif: Tif::IOC,
7979
reduce_only: false,
8080
client_order_id: Some(cloid),
8181
take_profit: None,

src/models/info/response/account.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub struct AccountResponse {
2525
pub fee_level: u8,
2626
pub account_equity: Decimal,
2727
pub available_to_spend: Decimal,
28+
pub available_to_withdraw: Decimal,
2829
pub pending_balance: Decimal,
2930
pub total_margin_used: Decimal,
3031
pub positions_count: u32,

src/models/ws/responses.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ pub struct AccountInfoResponse {
153153
pub account_equity: Decimal,
154154
#[serde(rename = "as")]
155155
pub available_to_spend: Decimal,
156+
#[serde(rename = "aw")]
157+
pub available_to_withdraw: Decimal,
156158
#[serde(rename = "b")]
157159
pub balance: Decimal,
158160
#[serde(rename = "f")]

0 commit comments

Comments
 (0)