• Invest: 1-630-413-3309
  • Open 24/7

Credence Global Bank Invest API Documentation

Build your application to connect to our investment platform and the 250,000 traders connected to it.

GET market/clock{.format}

Description

This call will return the current state of the market, the time of the next state change (if the market is open), and the current server timestamp.

Authentication Required
No
URI Parameters
format a response format, default is xml (See Response Structure)
Example URL
https://api.tradeking.com/v1/market/clock.xml

Data Fields

Data Tag Description
date Current date and time in the format of YYYY-MM-DD HH:MM:SS.
current Current market status as “pre”, “open”, “after”, or “closed”.
next Next market status as “pre”, “open”, “after”, or “closed”.
change_at Timestamp of next market session change.
message Message of market status as either open or closed.
unixtime Current timestamp in UNIX format.

Request Example

GET /v1/market/clock.xml HTTP/1.1
Connection: close
Host: api.tradeking.com

Response Example

<?xml version="1.0" encoding="UTF-8"?>
<response id="3d6644c0:1304729645c:2dc3">
  <date>2011-11-03 04:00:00</date>
  <status>
    <current>closed</current>
  </status>
  <message>Market is open Monday through Friday 9:30AM to 4:00PM EST</message>
  <unixtime>1320307200</unixtime>
</response>
Disclaimer:

Any mention of actual symbols are to be used for coding purposes only and do not imply a recommendation or solicitation to buy or sell a particular security or to engage in any particular investment strategy.

At the time of publication and in the preceding month, Credence Global Bank Invest did not have ownership greater than 1% in any stocks mentioned here and does not have any other actual, material conflict of interest known at the time of publication.

Credence Global Bank Invest did not receive compensation from a public offering or from investment banking services related to any companies mentioned here within the past 12 months, or expects to receive any in the next 3 months. Credence Global Bank Invest did not engage in market making in the securities mentioned here.

Credence Global Bank Invest Securities' background can be found at FINRA's BrokerCheck. Options involve risk and are not suitable for all investors.

Review the Characteristics and Risks of Standardized Options brochure before you begin trading options. Options investors may lose the entire amount of their investment in a relatively short period of time.