The opinions expressed in these forums do not represent those of C2, and any discussion of profit/loss is not indicative of future performance or success. There is a substantial risk of loss in trading. You should therefore carefully consider whether such trading is suitable for you in light of your financial condition. You should read, understand, and consider the Risk Disclosure Statement that is provided by your broker before you consider trading. Most people who trade lose money.

API Beginner - First API call

What is the easiest command I can type to check connection with the API.

import numpy as np
import pandas as pd
import requests
api_key = ‘xxxxxx’
URL = xxxxxxx
r = requests.get(url=URL, headers={“Authorization”: api_key, ‘filter’:‘active’})

Back to C2 Platform