Skip to content

Commit c0374b9

Browse files
authored
chore: bump version (#6)
1 parent 10d5c7b commit c0374b9

File tree

2 files changed

+80
-31
lines changed

2 files changed

+80
-31
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
domeapi (0.0.2)
4+
domeapi (0.0.3)
55
dry-cli
66
dry-configurable
77
dry-container
@@ -212,7 +212,7 @@ CHECKSUMS
212212
declarative (0.0.20) sha256=8021dd6cb17ab2b61233c56903d3f5a259c5cf43c80ff332d447d395b17d9ff9
213213
disposable (0.6.3) sha256=7f2a3fb251bff6cd83f25b164043d4ec3531209b51b066ed476a9df9c2d384cc
214214
docile (1.4.1) sha256=96159be799bfa73cdb721b840e9802126e4e03dfc26863db73647204c727f21e
215-
domeapi (0.0.2)
215+
domeapi (0.0.3)
216216
dry-cli (1.3.0) sha256=984a715f9d7f8d9bf87b6530acdd4321dcf747636bfeb3ea7fd1b81bc0226e84
217217
dry-configurable (1.3.0) sha256=882d862858567fc1210d2549d4c090f34370fc1bb7c5c1933de3fe792e18afa8
218218
dry-container (0.11.0) sha256=23be9381644d47343f3bf13b082b4255994ada0bfd88e0737eaaadc99d035229

Readme.adoc

Lines changed: 78 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Access Polymarket endpoints via the `polymarket` namespace.
4747

4848
==== Markets
4949

50+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-markets)
51+
5052
List markets with optional filtering:
5153

5254
[source,ruby]
@@ -55,14 +57,7 @@ List markets with optional filtering:
5557
markets = client.polymarket.markets.list
5658
5759
# List markets with custom filter
58-
filter = Rubyists::Domeapi::Polymarket::MarketFilter.new(
59-
Rubyists::Domeapi::Polymarket::MarketFilter::Properties.new(
60-
limit: 10,
61-
offset: 0,
62-
status: 'open'
63-
)
64-
)
65-
markets = client.polymarket.markets.list(filter)
60+
markets = client.polymarket.markets.list(limit: 10, offset: 0, status: 'open')
6661
----
6762

6863
Get market price:
@@ -72,50 +67,104 @@ Get market price:
7267
price = client.polymarket.markets.price(token_id: 'token_id')
7368
----
7469

70+
==== Candlesticks
71+
72+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-candlesticks)
73+
7574
Get candlesticks:
7675

7776
[source,ruby]
7877
----
79-
filter = Rubyists::Domeapi::Polymarket::Candlesticks::Filter.new(
80-
Rubyists::Domeapi::Polymarket::Candlesticks::Filter::Properties.new(
81-
condition_id: 'condition_id',
82-
start_time: 1625097600,
83-
end_time: 1625184000,
84-
interval: 60
85-
)
78+
candlesticks = client.polymarket.candlesticks.list(
79+
condition_id: 'condition_id',
80+
start_time: 1625097600,
81+
end_time: 1625184000,
82+
interval: 60
8683
)
87-
candlesticks = client.polymarket.candlesticks.list(filter)
8884
----
8985

9086
==== Trade History
9187

88+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-trade-history)
89+
9290
Get trade history:
9391

9492
[source,ruby]
9593
----
96-
filter = Rubyists::Domeapi::Polymarket::TradeHistory::Filter.new(
97-
Rubyists::Domeapi::Polymarket::TradeHistory::Filter::Properties.new(
98-
market_slug: 'market_slug',
99-
limit: 10
100-
)
94+
trades = client.polymarket.trade_history.list(
95+
market_slug: 'market_slug',
96+
limit: 10
10197
)
102-
trades = client.polymarket.trade_history.list(filter)
10398
----
10499

105100
==== Orderbook
106101

102+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-orderbook-history)
103+
107104
Get orderbook history:
108105

109106
[source,ruby]
110107
----
111-
filter = Rubyists::Domeapi::Polymarket::Orderbook::Filter.new(
112-
Rubyists::Domeapi::Polymarket::Orderbook::Filter::Properties.new(
113-
token_id: 'token_id',
114-
start_time: 1625097600000,
115-
end_time: 1625184000000
116-
)
108+
snapshots = client.polymarket.orderbook.list(
109+
token_id: 'token_id',
110+
start_time: 1625097600000,
111+
end_time: 1625184000000
112+
)
113+
----
114+
115+
==== Activity
116+
117+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-activity)
118+
119+
Get activity:
120+
121+
[source,ruby]
122+
----
123+
activity = client.polymarket.activity.list(
124+
user: '0x...',
125+
limit: 10
126+
)
127+
----
128+
129+
==== Market Price
130+
131+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-market-price)
132+
133+
Get market price history:
134+
135+
[source,ruby]
136+
----
137+
prices = client.polymarket.market_price.list(
138+
token_id: 'token_id',
139+
at_time: 1625097600
140+
)
141+
----
142+
143+
==== Wallet
144+
145+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-wallet)
146+
147+
Get wallet information:
148+
149+
[source,ruby]
150+
----
151+
wallet = client.polymarket.wallet.list(
152+
eoa: '0x...'
153+
)
154+
----
155+
156+
==== Wallet Profit and Loss
157+
158+
[API Reference](https://docs.domeapi.io/api-reference/endpoint/get-wallet-pnl)
159+
160+
Get wallet profit and loss:
161+
162+
[source,ruby]
163+
----
164+
pnl = client.polymarket.wallet_profit_and_loss.list(
165+
wallet_address: '0x...',
166+
granularity: 'day'
117167
)
118-
snapshots = client.polymarket.orderbook.list(filter)
119168
----
120169

121170
== Development

0 commit comments

Comments
 (0)