mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-19 07:28:10 +00:00
fix: align V2 client with official SDK fee behavior
This commit is contained in:
@@ -31,7 +31,10 @@ fn bootstrap_client(private_key: &str) -> ClobClient {
|
||||
.expect("failed to build bootstrap client")
|
||||
}
|
||||
|
||||
fn authenticated_client(private_key: String, api_credentials: polyfill_rs::ApiCredentials) -> ClobClient {
|
||||
fn authenticated_client(
|
||||
private_key: String,
|
||||
api_credentials: polyfill_rs::ApiCredentials,
|
||||
) -> ClobClient {
|
||||
ClobClient::from_config(ClientConfig {
|
||||
base_url: HOST.to_string(),
|
||||
chain: CHAIN_ID,
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
#![cfg(feature = "stream")]
|
||||
|
||||
use futures::StreamExt;
|
||||
use polyfill_rs::{ClientConfig, ClobClient, OrderBookManager, WebSocketStream, WsBookUpdateProcessor};
|
||||
use polyfill_rs::{
|
||||
ClientConfig, ClobClient, OrderBookManager, WebSocketStream, WsBookUpdateProcessor,
|
||||
};
|
||||
use std::env;
|
||||
use std::time::Duration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user