import urllib2
def main():
req = urllib2.Request('https://api.tradier.com/v1/user/profile')
req.add_header('Authorization', 'Bearer YOUR_ACCESS_TOKEN')
f = urllib2.urlopen(req)
print f.read()
if __name__ == '__main__':
main()
Tradier Inc. and its corresponding technology services (including API services) are distinct and separate from the services provided by Tradier Brokerage Inc. For more information regarding the services of Tradier, Inc., please contact techsupport@tradier.com. For more information regarding the services of Tradier Brokerage, Inc. please contact service@tradierbrokerage.com. Tradier Brokerage Inc. Member FINRA/SIPC