Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions docs/adapters/browser/coingecko.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# CoinGecko

**Mode**: 🌐 Public · **Domain**: `coingecko.com`

## Commands

| Command | Description |
|---------|-------------|
| `opencli coingecko top` | Top cryptocurrencies by market cap |
| `opencli coingecko trending` | Trending coins |
| `opencli coingecko search` | Search for cryptocurrencies |
| `opencli coingecko coin` | Detailed info for a specific coin |
| `opencli coingecko price` | Quick price check for multiple coins |
| `opencli coingecko global` | Global market overview (top 10) |
| `opencli coingecko categories` | Coin categories ranked by market cap |
| `opencli coingecko exchanges` | Top exchanges by trading volume |
| `opencli coingecko gainers` | Top gainers by 24h price change |
| `opencli coingecko losers` | Top losers by 24h price change |

## Usage Examples

```bash
# Top 10 coins by market cap
opencli coingecko top --limit 10

# Top coins priced in EUR
opencli coingecko top --currency eur

# Trending coins
opencli coingecko trending

# Search for a coin
opencli coingecko search --query solana

# Detailed Bitcoin info (price, 24h/7d/30d change, ATH)
opencli coingecko coin --id bitcoin

# Quick price check for multiple coins
opencli coingecko price --ids "bitcoin,ethereum,solana"

# Global market overview
opencli coingecko global

# Coin categories (DeFi, Layer 1, etc.)
opencli coingecko categories --limit 10

# Top exchanges
opencli coingecko exchanges --limit 10

# Top gainers and losers
opencli coingecko gainers --limit 10
opencli coingecko losers --limit 10

# JSON output
opencli coingecko top --limit 5 -f json
```

## Prerequisites

None — all commands use the public CoinGecko API, no browser or login required.
21 changes: 18 additions & 3 deletions docs/adapters/browser/facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@
| `opencli facebook notifications` | Get recent notifications |
| `opencli facebook feed` | Get news feed posts |
| `opencli facebook search` | Search people, pages, posts |
| `opencli facebook friends` | Friend suggestions |
| `opencli facebook groups` | List your joined groups |
| `opencli facebook memories` | On This Day memories |
| `opencli facebook events` | Browse event categories |
| `opencli facebook add-friend` | Send a friend request |
| `opencli facebook join-group` | Join a group |

## Usage Examples

```bash
# View a profile
opencli facebook profile zuck
opencli facebook profile --username zuck

# Get notifications
opencli facebook notifications --limit 10
Expand All @@ -24,10 +30,19 @@ opencli facebook notifications --limit 10
opencli facebook feed --limit 5

# Search
opencli facebook search "OpenAI" --limit 5
opencli facebook search --query "OpenAI" --limit 5

# List your groups
opencli facebook groups

# Send friend request
opencli facebook add-friend --username someone

# Join a group
opencli facebook join-group --group 123456789

# JSON output
opencli facebook profile zuck -f json
opencli facebook profile --username zuck -f json
```

## Prerequisites
Expand Down
29 changes: 18 additions & 11 deletions docs/adapters/browser/instagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,38 @@
| `opencli instagram followers` | List user's followers |
| `opencli instagram following` | List user's following |
| `opencli instagram saved` | Get your saved posts |
| `opencli instagram like` | Like a post |
| `opencli instagram unlike` | Unlike a post |
| `opencli instagram comment` | Comment on a post |
| `opencli instagram save` | Bookmark a post |
| `opencli instagram unsave` | Remove bookmark |
| `opencli instagram follow` | Follow a user |
| `opencli instagram unfollow` | Unfollow a user |

## Usage Examples

```bash
# View a user's profile
opencli instagram profile nasa
opencli instagram profile --username nasa

# Search users
opencli instagram search nasa --limit 5
opencli instagram search --query nasa --limit 5

# View a user's recent posts
opencli instagram user nasa --limit 10
opencli instagram user --username nasa --limit 10

# Discover trending posts
opencli instagram explore --limit 20
# Like a user's most recent post
opencli instagram like --username nasa --index 1

# List followers/following
opencli instagram followers nasa --limit 20
opencli instagram following nasa --limit 20
# Comment on a post
opencli instagram comment --username nasa --text "Amazing!" --index 1

# Get your saved posts
opencli instagram saved --limit 10
# Follow/unfollow
opencli instagram follow --username nasa
opencli instagram unfollow --username nasa

# JSON output
opencli instagram profile nasa -f json
opencli instagram profile --username nasa -f json
```

## Prerequisites
Expand Down
27 changes: 27 additions & 0 deletions src/clis/coingecko/categories.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
site: coingecko
name: categories
description: Cryptocurrency categories ranked by market cap
domain: api.coingecko.com
strategy: public
browser: false

args:
limit:
type: int
default: 20
description: Number of categories

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/categories?order=market_cap_desc

- map:
rank: ${{ index + 1 }}
name: ${{ item.name }}
market_cap: ${{ item.market_cap }}
change_24h: ${{ item.market_cap_change_24h }}
volume_24h: ${{ item.volume_24h }}

- limit: ${{ args.limit }}

columns: [rank, name, market_cap, change_24h, volume_24h]
33 changes: 33 additions & 0 deletions src/clis/coingecko/coin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
site: coingecko
name: coin
description: Get detailed info for a specific cryptocurrency
domain: api.coingecko.com
strategy: public
browser: false

args:
id:
type: str
required: true
positional: true
description: "Coin ID (e.g. bitcoin, ethereum, solana)"

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/${{ args.id }}?localization=false&tickers=false&community_data=false&developer_data=false

- map:
name: ${{ item.name }}
symbol: ${{ item.symbol }}
rank: ${{ item.market_cap_rank }}
price: ${{ item.market_data.current_price.usd }}
change_24h: ${{ item.market_data.price_change_percentage_24h }}
change_7d: ${{ item.market_data.price_change_percentage_7d }}
change_30d: ${{ item.market_data.price_change_percentage_30d }}
market_cap: ${{ item.market_data.market_cap.usd }}
volume: ${{ item.market_data.total_volume.usd }}
ath: ${{ item.market_data.ath.usd }}
ath_change: ${{ item.market_data.ath_change_percentage.usd }}
sentiment_up: ${{ item.sentiment_votes_up_percentage }}

columns: [name, symbol, rank, price, change_24h, change_7d, change_30d, market_cap, ath, ath_change]
28 changes: 28 additions & 0 deletions src/clis/coingecko/exchanges.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
site: coingecko
name: exchanges
description: Top cryptocurrency exchanges by trading volume
domain: api.coingecko.com
strategy: public
browser: false

args:
limit:
type: int
default: 20
description: Number of exchanges

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/exchanges?per_page=${{ args.limit }}

- map:
rank: ${{ index + 1 }}
name: ${{ item.name }}
country: ${{ item.country }}
trust_score: ${{ item.trust_score }}
volume_btc: ${{ item.trade_volume_24h_btc }}
year: ${{ item.year_established }}

- limit: ${{ args.limit }}

columns: [rank, name, country, trust_score, volume_btc, year]
38 changes: 38 additions & 0 deletions src/clis/coingecko/gainers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
site: coingecko
name: gainers
description: Top gaining cryptocurrencies by 24h price change
domain: api.coingecko.com
strategy: public
browser: false

args:
limit:
type: int
default: 10
description: Number of coins
currency:
type: str
default: usd
description: Price currency

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/markets?vs_currency=${{ args.currency }}&order=market_cap_desc&per_page=250&page=1

- filter: item.price_change_percentage_24h

- sort:
by: price_change_percentage_24h
order: desc

- map:
rank: ${{ index + 1 }}
name: ${{ item.name }}
symbol: ${{ item.symbol }}
price: ${{ item.current_price }}
change_24h: ${{ item.price_change_percentage_24h }}
cap_rank: ${{ item.market_cap_rank }}

- limit: ${{ args.limit }}

columns: [rank, name, symbol, price, change_24h, cap_rank]
22 changes: 22 additions & 0 deletions src/clis/coingecko/global.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
site: coingecko
name: global
description: Global cryptocurrency market overview
domain: api.coingecko.com
strategy: public
browser: false

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=10&page=1

- map:
rank: ${{ item.market_cap_rank }}
name: ${{ item.name }}
symbol: ${{ item.symbol }}
price: ${{ item.current_price }}
change_24h: ${{ item.price_change_percentage_24h }}
market_cap: ${{ item.market_cap }}

- limit: 10

columns: [rank, name, symbol, price, change_24h, market_cap]
35 changes: 35 additions & 0 deletions src/clis/coingecko/losers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
site: coingecko
name: losers
description: Top losing cryptocurrencies by 24h price change
domain: api.coingecko.com
strategy: public
browser: false

args:
limit:
type: int
default: 10
description: Number of coins
currency:
type: str
default: usd
description: Price currency

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/markets?vs_currency=${{ args.currency }}&order=market_cap_desc&per_page=100&page=1

- sort:
by: price_change_percentage_24h

- map:
rank: ${{ index + 1 }}
name: ${{ item.name }}
symbol: ${{ item.symbol }}
price: ${{ item.current_price }}
change_24h: ${{ item.price_change_percentage_24h }}
cap_rank: ${{ item.market_cap_rank }}

- limit: ${{ args.limit }}

columns: [rank, name, symbol, price, change_24h, cap_rank]
31 changes: 31 additions & 0 deletions src/clis/coingecko/price.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
site: coingecko
name: price
description: Quick price check for one or more cryptocurrencies
domain: api.coingecko.com
strategy: public
browser: false

args:
ids:
type: str
required: true
positional: true
description: "Comma-separated coin IDs (e.g. bitcoin,ethereum,solana)"
currency:
type: str
default: usd
description: Price currency (usd, eur, gbp, aud, cny, etc.)

pipeline:
- fetch:
url: https://api.coingecko.com/api/v3/coins/markets?vs_currency=${{ args.currency }}&ids=${{ args.ids }}&order=market_cap_desc

- map:
coin: ${{ item.name }}
symbol: ${{ item.symbol }}
price: ${{ item.current_price }}
change_24h: ${{ item.price_change_percentage_24h }}
market_cap: ${{ item.market_cap }}
volume: ${{ item.total_volume }}

columns: [coin, symbol, price, change_24h, market_cap, volume]
Loading
Loading