forked from Coinigy/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurl_examples.sh
More file actions
16 lines (11 loc) · 1.05 KB
/
curl_examples.sh
File metadata and controls
16 lines (11 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
#list exchanges
curl -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST "https://api.coinigy.com/api/v1/exchanges"
#post data in json format
curl -H "Content-Type: application/json" -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d '{"exchange_code":"BTCC"}' "https://api.coinigy.com/api/v1/markets"
#post data as params
curl -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d 'exchange_code=BTCC' "https://api.coinigy.com/api/v1/markets"
#post multiple parameter data
curl -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d 'exch_code=BTCC&market_name=BTC/CNY&alert_price=6000.00&alert_note="time to buy the yacht"' "https://api.coinigy.com/api/v1/addAlert"
#post multiple parameter data in json format
curl -H "Content-Type: application/json" -H "X-API-KEY:yourapikeyhere" -H "X-API-SECRET:yoursecrethere" -X POST -d '{"exch_code":"BTCC","market_name":"BTC/CNY","alert_price":"6000.00","alert_note":"time to buy the yacht"}' "https://api.coinigy.com/api/v1/addAlert"