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_tokens.sh
Created August 2, 2019 14:32
Get a list of supported cryptocurrencies
curl -X GET \
'https://api.coinscious.org/tokens' \
-H 'Authorization: Bearer <token>'
@coinscious-io
coinscious-io / get_tokens.py
Created August 2, 2019 14:31
Get a list of supported cryptocurrencies
import requests
url = "https://api.coinscious.org/tokens"
payload = ""
headers = {
'Authorization': "Bearer <token>"
}
response = requests.request("GET", url, data=payload, headers=headers)
@coinscious-io
coinscious-io / get_tokens.java
Created August 2, 2019 14:31
Get a list of supported cryptocurrencies
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_ohlcv.sh
Created August 2, 2019 14:31
Get OHLCV data for a cryptocurrency trading pair at a specific exchange
curl -X GET \
'https://api.coinscious.org/ohlcv/binance/eth_btc?start=1563593400000&end=1563598800000' \
-H 'Authorization: Bearer <token>'
@coinscious-io
coinscious-io / get_ohlcv.py
Created August 2, 2019 14:30
Get OHLCV data for a cryptocurrency trading pair at a specific exchange
import requests
url = "https://api.coinscious.org/ohlcv/binance/eth_btc"
querystring = {"start":"1563593400000","end":"1563598800000"}
payload = ""
headers = {
'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 {
@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_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.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_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>'