File tree Expand file tree Collapse file tree
docs/websocket/subscriptions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " pacifica_rust_sdk"
3- version = " 0.1.0 "
3+ version = " 0.1.1 "
44edition = " 2024"
55authors = [" Neiroleptik" ]
66description = " Rust SDK for pacifica.fi exchange"
Original file line number Diff line number Diff 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" )]
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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" ) ]
You can’t perform that action at this time.
0 commit comments