Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TechieBoy/polymarket-rs-client
/ functions
Functions
83 in github.com/TechieBoy/polymarket-rs-client
⨍
Functions
83
◇
Types & classes
36
↓ 21 callers
Method
as_str
(&self)
src/data.rs:294
↓ 16 callers
Method
create_request_with_headers
( &self, method: Method, endpoint: &str, headers: impl Iterator<Item = (&'stat
src/lib.rs:117
↓ 16 callers
Method
get_l2_parameters
(&self)
src/lib.rs:93
↓ 15 callers
Method
to_string
(&self)
src/data.rs:19
↓ 6 callers
Function
decimal_to_token_u32
(amt: Decimal)
src/orders.rs:108
↓ 5 callers
Function
create_l2_headers
( signer: &impl EthSigner, api_creds: &ApiCreds, method: &str, req_path: &str, body: Optio
src/headers.rs:34
↓ 5 callers
Function
get_contract_config
(chain_id: u64, neg_risk: bool)
src/config.rs:7
↓ 4 callers
Method
get_l1_parameters
(&self)
src/lib.rs:86
↓ 4 callers
Method
to_query_params
(&self)
src/data.rs:35
↓ 3 callers
Method
fix_amount_rounding
(&self, mut amt: Decimal, round_config: &RoundConfig)
src/orders.rs:136
↓ 3 callers
Function
get_current_unix_time_secs
()
src/utils.rs:12
↓ 3 callers
Method
get_sig_type
(&self)
src/orders.rs:132
↓ 2 callers
Function
build_hmac_signature
( secret: &str, timestamp: u64, method: &str, req_path: &str, body: Option<&T>, )
src/utils.rs:19
↓ 2 callers
Method
build_signed_order
( &self, token_id: String, side: Side, chain_id: u64, exchange: Addres
src/orders.rs:295
↓ 2 callers
Function
create_l1_headers
(signer: &impl EthSigner, nonce: Option<U256>)
src/headers.rs:20
↓ 2 callers
Method
get_filled_order_options
( &self, token_id: &str, options: Option<&CreateOrderOptions>, )
src/lib.rs:343
↓ 2 callers
Method
is_price_in_range
(&self, price: Decimal, tick_size: Decimal)
src/lib.rs:366
↓ 2 callers
Method
set_signature_type
(&mut self, s: u8)
src/data.rs:54
↓ 1 callers
Method
calculate_market_price
( &self, token_id: &str, side: Side, amount: Decimal, )
src/lib.rs:440
↓ 1 callers
Method
create_api_key
(&self, nonce: Option<U256>)
src/lib.rs:150
↓ 1 callers
Method
create_order
( &self, order_args: &OrderArgs, expiration: Option<u64>, extras: Option<Extra
src/lib.rs:376
↓ 1 callers
Method
derive_api_key
(&self, nonce: Option<U256>)
src/lib.rs:161
↓ 1 callers
Function
generate_seed
()
src/orders.rs:46
↓ 1 callers
Method
get_market_order_amounts
( &self, amount: Decimal, price: Decimal, round_config: &RoundConfig, )
src/orders.rs:178
↓ 1 callers
Method
get_neg_risk
Cache
src/lib.rs:309
↓ 1 callers
Method
get_order_amounts
( &self, side: Side, size: Decimal, price: Decimal, round_config: &Rou
src/orders.rs:146
↓ 1 callers
Method
get_order_book
(&self, token_id: &str)
src/lib.rs:410
↓ 1 callers
Method
get_tick_size
cache
src/lib.rs:297
↓ 1 callers
Method
post_order
( &self, order: SignedOrderRequest, order_type: OrderType, )
src/lib.rs:486
↓ 1 callers
Method
resolve_tick_size
( &self, token_id: &str, tick_size: Option<Decimal>, )
src/lib.rs:321
↓ 1 callers
Function
sign_clob_auth_message
( signer: &impl EthSigner, timestamp: String, nonce: U256, )
src/eth_utils.rs:38
↓ 1 callers
Function
sign_order_message
( signer: &(impl EthSigner + Sized), order: Order, chain_id: u64, verifying_contract: Address,
src/eth_utils.rs:67
Method
are_orders_scoring
( &self, order_ids: &[&str], )
src/lib.rs:816
Method
calculate_market_price
( &self, positions: &[OrderSummary], amount_to_match: Decimal, )
src/orders.rs:197
Method
cancel
(&self, order_id: &str)
src/lib.rs:509
Method
cancel_all
(&self)
src/lib.rs:535
Method
cancel_market_orders
( &self, market: Option<&str>, asset_id: Option<&str>, )
src/lib.rs:547
Method
cancel_orders
(&self, order_ids: &[String])
src/lib.rs:523
Method
create_and_post_order
(&self, order_args: &OrderArgs)
src/lib.rs:504
Method
create_market_order
( &self, chain_id: u64, order_args: &MarketOrderArgs, price: Decimal,
src/orders.rs:215
Method
create_market_order
( &self, order_args: &MarketOrderArgs, extras: Option<ExtraOrderArgs>, options
src/lib.rs:457
Method
create_or_derive_api_key
(&self, nonce: Option<U256>)
src/lib.rs:172
Method
create_order
( &self, chain_id: u64, order_args: &OrderArgs, expiration: u64, extra
src/orders.rs:254
Method
default
()
src/data.rs:237
Method
delete_api_key
(&self)
src/lib.rs:191
Function
deserialize_number_from_string
(deserializer: D)
src/data.rs:148
Method
drop_notifications
(&self, ids: &[String])
src/lib.rs:719
Method
get_address
(&self)
src/lib.rs:101
Method
get_api_keys
(&self)
src/lib.rs:180
Method
get_balance_allowance
( &self, params: Option<BalanceAllowanceParams>, )
src/lib.rs:736
Method
get_collateral_address
(&self)
src/lib.rs:105
Method
get_conditional_address
(&self)
src/lib.rs:109
Method
get_exchange_address
(&self)
src/lib.rs:113
Method
get_last_trade_price
(&self, token_id: &str)
src/lib.rs:624
Method
get_last_trade_prices
(&self, token_ids: &[String])
src/lib.rs:635
Method
get_market
(&self, condition_id: &str)
src/lib.rs:894
Method
get_market_trades_events
(&self, condition_id: &str)
src/lib.rs:904
Method
get_markets
(&self, next_cursor: Option<&str>)
src/lib.rs:865
Method
get_midpoint
(&self, token_id: &str)
src/lib.rs:201
Method
get_midpoints
( &self, token_ids: &[String], )
src/lib.rs:212
Method
get_notifications
(&self)
src/lib.rs:695
Method
get_ok
(&self)
src/lib.rs:130
Method
get_order
(&self, order_id: &str)
src/lib.rs:612
Method
get_order_books
( &self, token_ids: &[String], )
src/lib.rs:421
Method
get_orders
( &self, params: Option<&OpenOrderParams>, next_cursor: Option<&str>, )
src/lib.rs:567
Method
get_price
(&self, token_id: &str, side: Side)
src/lib.rs:231
Method
get_prices
( &self, book_params: &[BookParams], )
src/lib.rs:242
Method
get_sampling_markets
(&self, next_cursor: Option<&str>)
src/lib.rs:836
Method
get_sampling_simplified_markets
( &self, next_cursor: Option<&str>, )
src/lib.rs:849
Method
get_server_time
(&self)
src/lib.rs:138
Method
get_simplified_markets
( &self, next_cursor: Option<&str>, )
src/lib.rs:878
Method
get_spread
(&self, token_id: &str)
src/lib.rs:266
Method
get_spreads
( &self, token_ids: &[String], )
src/lib.rs:277
Method
get_trades
( &self, trade_params: Option<&TradeParams>, next_cursor: Option<&str>, )
src/lib.rs:651
Method
is_order_scoring
(&self, order_id: &str)
src/lib.rs:798
Method
new
( signer: Box<dyn EthSigner>, sig_type: Option<SigType>, funder: Option<Address>,
src/orders.rs:117
Method
new
TODO: initial headers, gzip
src/lib.rs:45
Method
new
(order: SignedOrderRequest, owner: String, order_type: OrderType)
src/data.rs:176
Method
set_api_creds
(&mut self, api_creds: ApiCreds)
src/lib.rs:81
Function
test_build_hmac_signature
()
src/utils.rs:58
Method
update_balance_allowance
( &self, params: Option<BalanceAllowanceParams>, )
src/lib.rs:767
Method
with_l1_headers
(host: &str, key: &str, chain_id: u64)
src/lib.rs:52
Method
with_l2_headers
(host: &str, key: &str, chain_id: u64, api_creds: ApiCreds)
src/lib.rs:67