package polymarket
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
OCaml client library for the Polymarket prediction market API
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.2.0.tar.gz
md5=4eb4c5d2f63ff081c9713d90be5a51b2
sha512=0e3de0c9b40683e09ab8f9f966a44784ef1b9b482c3eefef84104a7e8042c92f1d79893ee9588b24fa3d0decaed7f365509f4d1c23c66ce8328efb64e721f276
doc/polymarket.rfq/Polymarket_rfq/Client/index.html
Module Polymarket_rfq.ClientSource
RFQ 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.
Source
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.
Request Endpoints
Source
val create_request :
t ->
body:Types.create_request_body ->
unit ->
(Types.create_request_response, Types.error) resultSource
val 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) resultQuote Endpoints
Source
val create_quote :
t ->
body:Types.create_quote_body ->
unit ->
(Types.create_quote_response, Types.error) resultSource
val 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) resultExecution Endpoints
Accept a quote. Use Order_builder.build_accept_quote_body to create the body.
Source
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page