MCPcopy Create free account

hub / github.com/TechieBoy/polymarket-rs-client / functions

Functions83 in github.com/TechieBoy/polymarket-rs-client

↓ 21 callersMethodas_str
(&self)
src/data.rs:294
↓ 16 callersMethodcreate_request_with_headers
( &self, method: Method, endpoint: &str, headers: impl Iterator<Item = (&'stat
src/lib.rs:117
↓ 16 callersMethodget_l2_parameters
(&self)
src/lib.rs:93
↓ 15 callersMethodto_string
(&self)
src/data.rs:19
↓ 6 callersFunctiondecimal_to_token_u32
(amt: Decimal)
src/orders.rs:108
↓ 5 callersFunctioncreate_l2_headers
( signer: &impl EthSigner, api_creds: &ApiCreds, method: &str, req_path: &str, body: Optio
src/headers.rs:34
↓ 5 callersFunctionget_contract_config
(chain_id: u64, neg_risk: bool)
src/config.rs:7
↓ 4 callersMethodget_l1_parameters
(&self)
src/lib.rs:86
↓ 4 callersMethodto_query_params
(&self)
src/data.rs:35
↓ 3 callersMethodfix_amount_rounding
(&self, mut amt: Decimal, round_config: &RoundConfig)
src/orders.rs:136
↓ 3 callersFunctionget_current_unix_time_secs
()
src/utils.rs:12
↓ 3 callersMethodget_sig_type
(&self)
src/orders.rs:132
↓ 2 callersFunctionbuild_hmac_signature
( secret: &str, timestamp: u64, method: &str, req_path: &str, body: Option<&T>, )
src/utils.rs:19
↓ 2 callersMethodbuild_signed_order
( &self, token_id: String, side: Side, chain_id: u64, exchange: Addres
src/orders.rs:295
↓ 2 callersFunctioncreate_l1_headers
(signer: &impl EthSigner, nonce: Option<U256>)
src/headers.rs:20
↓ 2 callersMethodget_filled_order_options
( &self, token_id: &str, options: Option<&CreateOrderOptions>, )
src/lib.rs:343
↓ 2 callersMethodis_price_in_range
(&self, price: Decimal, tick_size: Decimal)
src/lib.rs:366
↓ 2 callersMethodset_signature_type
(&mut self, s: u8)
src/data.rs:54
↓ 1 callersMethodcalculate_market_price
( &self, token_id: &str, side: Side, amount: Decimal, )
src/lib.rs:440
↓ 1 callersMethodcreate_api_key
(&self, nonce: Option<U256>)
src/lib.rs:150
↓ 1 callersMethodcreate_order
( &self, order_args: &OrderArgs, expiration: Option<u64>, extras: Option<Extra
src/lib.rs:376
↓ 1 callersMethodderive_api_key
(&self, nonce: Option<U256>)
src/lib.rs:161
↓ 1 callersFunctiongenerate_seed
()
src/orders.rs:46
↓ 1 callersMethodget_market_order_amounts
( &self, amount: Decimal, price: Decimal, round_config: &RoundConfig, )
src/orders.rs:178
↓ 1 callersMethodget_neg_risk
Cache
src/lib.rs:309
↓ 1 callersMethodget_order_amounts
( &self, side: Side, size: Decimal, price: Decimal, round_config: &Rou
src/orders.rs:146
↓ 1 callersMethodget_order_book
(&self, token_id: &str)
src/lib.rs:410
↓ 1 callersMethodget_tick_size
cache
src/lib.rs:297
↓ 1 callersMethodpost_order
( &self, order: SignedOrderRequest, order_type: OrderType, )
src/lib.rs:486
↓ 1 callersMethodresolve_tick_size
( &self, token_id: &str, tick_size: Option<Decimal>, )
src/lib.rs:321
↓ 1 callersFunctionsign_clob_auth_message
( signer: &impl EthSigner, timestamp: String, nonce: U256, )
src/eth_utils.rs:38
↓ 1 callersFunctionsign_order_message
( signer: &(impl EthSigner + Sized), order: Order, chain_id: u64, verifying_contract: Address,
src/eth_utils.rs:67
Methodare_orders_scoring
( &self, order_ids: &[&str], )
src/lib.rs:816
Methodcalculate_market_price
( &self, positions: &[OrderSummary], amount_to_match: Decimal, )
src/orders.rs:197
Methodcancel
(&self, order_id: &str)
src/lib.rs:509
Methodcancel_all
(&self)
src/lib.rs:535
Methodcancel_market_orders
( &self, market: Option<&str>, asset_id: Option<&str>, )
src/lib.rs:547
Methodcancel_orders
(&self, order_ids: &[String])
src/lib.rs:523
Methodcreate_and_post_order
(&self, order_args: &OrderArgs)
src/lib.rs:504
Methodcreate_market_order
( &self, chain_id: u64, order_args: &MarketOrderArgs, price: Decimal,
src/orders.rs:215
Methodcreate_market_order
( &self, order_args: &MarketOrderArgs, extras: Option<ExtraOrderArgs>, options
src/lib.rs:457
Methodcreate_or_derive_api_key
(&self, nonce: Option<U256>)
src/lib.rs:172
Methodcreate_order
( &self, chain_id: u64, order_args: &OrderArgs, expiration: u64, extra
src/orders.rs:254
Methoddefault
()
src/data.rs:237
Methoddelete_api_key
(&self)
src/lib.rs:191
Functiondeserialize_number_from_string
(deserializer: D)
src/data.rs:148
Methoddrop_notifications
(&self, ids: &[String])
src/lib.rs:719
Methodget_address
(&self)
src/lib.rs:101
Methodget_api_keys
(&self)
src/lib.rs:180
Methodget_balance_allowance
( &self, params: Option<BalanceAllowanceParams>, )
src/lib.rs:736
Methodget_collateral_address
(&self)
src/lib.rs:105
Methodget_conditional_address
(&self)
src/lib.rs:109
Methodget_exchange_address
(&self)
src/lib.rs:113
Methodget_last_trade_price
(&self, token_id: &str)
src/lib.rs:624
Methodget_last_trade_prices
(&self, token_ids: &[String])
src/lib.rs:635
Methodget_market
(&self, condition_id: &str)
src/lib.rs:894
Methodget_market_trades_events
(&self, condition_id: &str)
src/lib.rs:904
Methodget_markets
(&self, next_cursor: Option<&str>)
src/lib.rs:865
Methodget_midpoint
(&self, token_id: &str)
src/lib.rs:201
Methodget_midpoints
( &self, token_ids: &[String], )
src/lib.rs:212
Methodget_notifications
(&self)
src/lib.rs:695
Methodget_ok
(&self)
src/lib.rs:130
Methodget_order
(&self, order_id: &str)
src/lib.rs:612
Methodget_order_books
( &self, token_ids: &[String], )
src/lib.rs:421
Methodget_orders
( &self, params: Option<&OpenOrderParams>, next_cursor: Option<&str>, )
src/lib.rs:567
Methodget_price
(&self, token_id: &str, side: Side)
src/lib.rs:231
Methodget_prices
( &self, book_params: &[BookParams], )
src/lib.rs:242
Methodget_sampling_markets
(&self, next_cursor: Option<&str>)
src/lib.rs:836
Methodget_sampling_simplified_markets
( &self, next_cursor: Option<&str>, )
src/lib.rs:849
Methodget_server_time
(&self)
src/lib.rs:138
Methodget_simplified_markets
( &self, next_cursor: Option<&str>, )
src/lib.rs:878
Methodget_spread
(&self, token_id: &str)
src/lib.rs:266
Methodget_spreads
( &self, token_ids: &[String], )
src/lib.rs:277
Methodget_trades
( &self, trade_params: Option<&TradeParams>, next_cursor: Option<&str>, )
src/lib.rs:651
Methodis_order_scoring
(&self, order_id: &str)
src/lib.rs:798
Methodnew
( signer: Box<dyn EthSigner>, sig_type: Option<SigType>, funder: Option<Address>,
src/orders.rs:117
Methodnew
TODO: initial headers, gzip
src/lib.rs:45
Methodnew
(order: SignedOrderRequest, owner: String, order_type: OrderType)
src/data.rs:176
Methodset_api_creds
(&mut self, api_creds: ApiCreds)
src/lib.rs:81
Functiontest_build_hmac_signature
()
src/utils.rs:58
Methodupdate_balance_allowance
( &self, params: Option<BalanceAllowanceParams>, )
src/lib.rs:767
Methodwith_l1_headers
(host: &str, key: &str, chain_id: u64)
src/lib.rs:52
Methodwith_l2_headers
(host: &str, key: &str, chain_id: u64, api_creds: ApiCreds)
src/lib.rs:67