mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-15 13:38:07 +00:00
fix: fail fast on invalid api credentials
This commit is contained in:
@@ -128,7 +128,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
// Create client with API credentials only (no private key needed for custodial trading)
|
||||
let mut client = ClobClient::new("https://clob.polymarket.com");
|
||||
client.set_api_creds(api_creds);
|
||||
client.set_api_creds(api_creds)?;
|
||||
|
||||
println!("✅ Client configured for custodial API trading");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user