Polymarket_rfq.ClientSourceRFQ API client for Request for Quote trading.
All RFQ endpoints require L2 authentication.
Default base URL for the RFQ API: https://clob.polymarket.com
RFQ client with L2 authentication.
val create :
?base_url:string ->
sw:Eio.Switch.t ->
net:_ Eio.Net.t ->
rate_limiter:Polymarket_rate_limiter.Rate_limiter.t ->
private_key:Crypto.private_key ->
credentials:Auth.credentials ->
unit ->
tGet the API credentials.
val create_request :
t ->
body:Types.create_request_body ->
unit ->
(Types.create_request_response, Types.error) resultval get_requests :
t ->
?offset:string ->
?limit:int ->
?state:Types.State_filter.t ->
?request_ids:string list ->
?markets:string list ->
?size_min:float ->
?size_max:float ->
?size_usdc_min:float ->
?size_usdc_max:float ->
?price_min:float ->
?price_max:float ->
?sort_by:Types.Sort_by.t ->
?sort_dir:Types.Sort_dir.t ->
unit ->
(Types.get_requests_response, Types.error) resultval create_quote :
t ->
body:Types.create_quote_body ->
unit ->
(Types.create_quote_response, Types.error) resultval get_quotes :
t ->
?offset:string ->
?limit:int ->
?state:Types.State_filter.t ->
?quote_ids:string list ->
?request_ids:string list ->
?markets:string list ->
?size_min:float ->
?size_max:float ->
?size_usdc_min:float ->
?size_usdc_max:float ->
?price_min:float ->
?price_max:float ->
?sort_by:Types.Sort_by.t ->
?sort_dir:Types.Sort_dir.t ->
unit ->
(Types.get_quotes_response, Types.error) resultAccept a quote. Use Order_builder.build_accept_quote_body to create the body.
val approve_order :
t ->
body:Types.approve_order_body ->
unit ->
(Types.approve_order_response, Types.error) resultApprove an order. Use Order_builder.build_accept_quote_body to create the body.