Skip to content

Instantly share code, notes, and snippets.

View coinscious-io's full-sized avatar

coinscious-io

View GitHub Profile
@coinscious-io
coinscious-io / get_exchange_pairs.java
Created August 2, 2019 14:25
Get list of supported cryptocurrency trading pairs at a specific exchange
import okhttp3.Dispatcher;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class Example {
public static void main(String[] args) throws IOException {
@coinscious-io
coinscious-io / get_exchange_pairs.py
Created August 2, 2019 14:26
Get list of supported cryptocurrency trading pairs at a specific exchange
import requests
url = "https://api.coinscious.org/exchanges/poloniex/pairs"
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
response = requests.request("GET", url, data=payload, headers=headers)
@coinscious-io
coinscious-io / get_exchange_pairs.sh
Created August 2, 2019 14:26
Get list of supported cryptocurrency trading pairs at a specific exchange
curl -X GET \
'https://api.coinscious.org/exchanges/poloniex/pairs' \
-H 'Authorization: Bearer <token>'
@coinscious-io
coinscious-io / get_exchange_vwap.java
Created August 2, 2019 14:27
Get VWAP of a trading pair at a specific exchange
import okhttp3.Dispatcher;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class Example {
public static void main(String[] args) throws IOException {
@coinscious-io
coinscious-io / get_exchange_vwap.py
Created August 2, 2019 14:28
Get VWAP of a trading pair at a specific exchange
import requests
url = "https://api.coinscious.org/exchange-vwap/binance/eth_btc"
querystring = {"interval":"1m"}
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
@coinscious-io
coinscious-io / get_exchange_vwap.sh
Created August 2, 2019 14:28
Get VWAP of a trading pair at a specific exchange
curl -X GET \
'https://api.coinscious.org/exchange-vwap/binance/eth_btc?interval=1m' \
-H 'Authorization: Bearer <token>'
@coinscious-io
coinscious-io / get_exchanges.java
Created August 2, 2019 14:29
Get a list of supported exchanges and their information
import okhttp3.Dispatcher;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class Example {
public static void main(String[] args) throws IOException {
@coinscious-io
coinscious-io / get_exchanges.py
Created August 2, 2019 14:29
Get a list of supported exchanges and their information
import requests
url = "https://api.coinscious.org/exchanges"
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
response = requests.request("GET", url, data=payload, headers=headers)
@coinscious-io
coinscious-io / get_exchanges.sh
Created August 2, 2019 14:29
Get a list of supported exchanges and their information
curl -X GET \
'https://api.coinscious.org/exchanges' \
-H 'Authorization: Bearer <token>’
@coinscious-io
coinscious-io / get_ohlcv.java
Created August 2, 2019 14:30
Get OHLCV data for a cryptocurrency trading pair at a specific exchange
import okhttp3.Dispatcher;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import java.io.IOException;
public class Example {
public static void main(String[] args) throws IOException {