Futures Spreads API
getFuturesSpreads
The getFuturesSpreads API returns all active futures spread for the requested commodity.
View All APIsContact Us to Get Access
Inputs
rootrequired
A sequence of characters based on the future contract root symbol.
Type
string (A sequence of characters. (example: GOOG))
Example
ZC
fieldsoptional
A comma separated list of the optional output fields that should be included in the query response.
Type
list (A comma or semi-colon delimited string.)
Example
open,high,ask,askSize
Outputs
symbol
always returned
always returned
A symbol or code that identifies a financial instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
symbolName
always returned
always returned
The name of the instrument.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
type
always returned
always returned
The type of spread in which the data is returned. For a list of valid values and their meaning please click here.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
leg1
always returned
always returned
The first leg of the futures spread.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
leg2
always returned
always returned
The second leg of the futures spread.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
leg3
always returned
always returned
The third leg of the futures spread.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
leg4
always returned
always returned
The fourth leg of the futures spread.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
lastPrice
always returned
always returned
The last price at which the spread traded.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
change
always returned
always returned
The net difference between the last traded price and previous close.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
volume
always returned
always returned
The quantity of shares or contracts traded.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
tradeTime
always returned
always returned
The exchagne timestamp for the last traded price.
dateTime
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
serverTimestamp
always returned
always returned
The time the message was generated on the server.
dateTime
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
A date and time in the format of YYYY-MM-DD HH:MI:SS<TIMEZONE_OFFSET>.
bid
as requested
as requested
The current bid price.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
bidSize
as requested
as requested
The size (quantity) of the current bid price.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
ask
as requested
as requested
The current ask price.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
askSize
as requested
as requested
The size (quantity) of the current ask price.
int
A numeric type defining a whole number. (example: 2)
A numeric type defining a whole number. (example: 2)
open
always returned
always returned
The opening (first) price for the session.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
high
always returned
always returned
The highest traded price for the session.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
low
always returned
always returned
The lowest traded price for the session.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
previousClose
always returned
always returned
The settlement price for the previous day.
double
A numeric type defining a number with fractional parts. (example: 2.14)
A numeric type defining a number with fractional parts. (example: 2.14)
flag
always returned
always returned
Determines the market state. If no flag, then the instrument is active and trades have been made. If present, can be one of the following:
"c" meaning that the market is closed for this instrument. "p" meaning that the market is in a pre-open state. This occurs when there are bids and offers being placed, but no trade has occurred yet. This is normally seen shortly before the offical opening time for busy markets, but can also be seen throughout the day for lightly traded markets. "s" meaning that the instrument has settled, and that this is the final, settlement price.
"c" meaning that the market is closed for this instrument. "p" meaning that the market is in a pre-open state. This occurs when there are bids and offers being placed, but no trade has occurred yet. This is normally seen shortly before the offical opening time for busy markets, but can also be seen throughout the day for lightly traded markets. "s" meaning that the instrument has settled, and that this is the final, settlement price.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
Status Code Responses
200
OK
Success
400
Bad Request
The request was invalid, please see the message for more information.
500
Internal Server Error
Something is not working correctly, please contact support.
JSON
GET
GET https://ondemand.websol.barchart.com/getFuturesSpreads.json?apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesSpreads.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"symbol": "_S_SP_ZCZ4_ZCH5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCH5",
"leg3": null,
"leg4": null,
"lastPrice": -17.25,
"change": 0.5,
"volume": 36524,
"tradeTime": "2024-10-11T13:19:59-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -17,
"askSize": 549900,
"open": -17.25,
"high": -16.75,
"low": -17.75,
"previousClose": -17.75,
"flag": ""
},
{
"symbol": "_S_BF_ZCZ4_ZCH5_ZCK5",
"symbolName": "Corn Futures Butterfly Spread",
"type": "BF",
"leg1": "ZCZ4",
"leg2": "ZCH5",
"leg3": "ZCK5",
"leg4": null,
"lastPrice": -8.5,
"change": 0.5,
"volume": 610,
"tradeTime": "2024-10-11T13:15:56-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -8.25,
"askSize": 6100,
"open": -8.5,
"high": -8.25,
"low": -8.75,
"previousClose": -9,
"flag": ""
},
{
"symbol": "_S_CF_ZCZ4_ZCH5_ZCK5_ZCN5",
"symbolName": "Corn Futures Condor Spread",
"type": "CF",
"leg1": "ZCZ4",
"leg2": "ZCH5",
"leg3": "ZCK5",
"leg4": "ZCN5",
"lastPrice": -11.75,
"change": -0.75,
"volume": 0,
"tradeTime": "2024-10-10T16:38:17-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -11.75,
"low": -11.75,
"previousClose": -11,
"flag": "s"
},
{
"symbol": "_S_BF_ZCZ4_ZCH5_ZCN5",
"symbolName": "Corn Futures Butterfly Spread",
"type": "BF",
"leg1": "ZCZ4",
"leg2": "ZCH5",
"leg3": "ZCN5",
"leg4": null,
"lastPrice": -2.75,
"change": 0.25,
"volume": 12,
"tradeTime": "2024-10-11T10:44:19-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -1,
"askSize": 200,
"open": -2.5,
"high": -2.5,
"low": -2.75,
"previousClose": -3,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCK5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCK5",
"leg3": null,
"leg4": null,
"lastPrice": -25.75,
"change": 0.75,
"volume": 9430,
"tradeTime": "2024-10-11T13:19:59-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -25.75,
"askSize": 35800,
"open": -26.25,
"high": -25.5,
"low": -26.5,
"previousClose": -26.5,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCN5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCN5",
"leg3": null,
"leg4": null,
"lastPrice": -31.25,
"change": 1.25,
"volume": 6720,
"tradeTime": "2024-10-11T13:19:55-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -31,
"askSize": 22000,
"open": -32,
"high": -31,
"low": -32.5,
"previousClose": -32.5,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCU5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCU5",
"leg3": null,
"leg4": null,
"lastPrice": -28.25,
"change": -0.5,
"volume": 552,
"tradeTime": "2024-10-11T13:18:18-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -28,
"askSize": 1000,
"open": -26.25,
"high": -25.75,
"low": -28.75,
"previousClose": -27.75,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCZ5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCZ5",
"leg3": null,
"leg4": null,
"lastPrice": -34,
"change": -1,
"volume": 3126,
"tradeTime": "2024-10-11T13:19:58-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -34,
"askSize": 500,
"open": -32.5,
"high": -31.25,
"low": -35,
"previousClose": -33,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCH6",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCH6",
"leg3": null,
"leg4": null,
"lastPrice": -45.25,
"change": -1.5,
"volume": 10,
"tradeTime": "2024-10-11T11:14:32-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": -41.75,
"high": -41.25,
"low": -45.25,
"previousClose": -43.75,
"flag": ""
},
{
"symbol": "_S_SP_ZCZ4_ZCK6",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCK6",
"leg3": null,
"leg4": null,
"lastPrice": -50,
"change": -1.25,
"volume": 0,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -50,
"low": -50,
"previousClose": -48.75,
"flag": "s"
},
{
"symbol": "_S_SP_ZCZ4_ZCN6",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCN6",
"leg3": null,
"leg4": null,
"lastPrice": -53.5,
"change": -1,
"volume": 0,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -53.5,
"low": -53.5,
"previousClose": -52.5,
"flag": "s"
},
{
"symbol": "_S_SP_ZCZ4_ZCU6",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCU6",
"leg3": null,
"leg4": null,
"lastPrice": -41.75,
"change": -2.75,
"volume": 4,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": -42.5,
"high": -41.75,
"low": -44,
"previousClose": -39,
"flag": "s"
},
{
"symbol": "_S_SP_ZCZ4_ZCZ6",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCZ6",
"leg3": null,
"leg4": null,
"lastPrice": -41.75,
"change": -2.5,
"volume": 1,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": -42.25,
"high": -41.75,
"low": -42.25,
"previousClose": -39.25,
"flag": "s"
},
{
"symbol": "_S_SP_ZCZ4_ZCN7",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCN7",
"leg3": null,
"leg4": null,
"lastPrice": -58.5,
"change": -2.5,
"volume": 0,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -58.5,
"low": -58.5,
"previousClose": -56,
"flag": "s"
},
{
"symbol": "_S_SP_ZCZ4_ZCZ7",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCZ4",
"leg2": "ZCZ7",
"leg3": null,
"leg4": null,
"lastPrice": -37,
"change": -2.5,
"volume": 0,
"tradeTime": "2024-10-11T13:20:00-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -37,
"low": -37,
"previousClose": -34.5,
"flag": "s"
},
{
"symbol": "_S_SP_ZCH5_ZCK5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCH5",
"leg2": "ZCK5",
"leg3": null,
"leg4": null,
"lastPrice": -8.5,
"change": 0.25,
"volume": 9697,
"tradeTime": "2024-10-11T13:19:59-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -8.5,
"askSize": 157200,
"open": -9,
"high": -8.5,
"low": -9,
"previousClose": -8.75,
"flag": ""
},
{
"symbol": "_S_BF_ZCH5_ZCK5_ZCN5",
"symbolName": "Corn Futures Butterfly Spread",
"type": "BF",
"leg1": "ZCH5",
"leg2": "ZCK5",
"leg3": "ZCN5",
"leg4": null,
"lastPrice": -3.25,
"change": -0.5,
"volume": 1674,
"tradeTime": "2024-10-11T13:07:45-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -3,
"askSize": 7300,
"open": -3,
"high": -2.75,
"low": -3.25,
"previousClose": -2.75,
"flag": ""
},
{
"symbol": "_S_CF_ZCH5_ZCK5_ZCN5_ZCU5",
"symbolName": "Corn Futures Condor Spread",
"type": "CF",
"leg1": "ZCH5",
"leg2": "ZCK5",
"leg3": "ZCN5",
"leg4": "ZCU5",
"lastPrice": -13.5,
"change": 0.75,
"volume": 0,
"tradeTime": "2024-10-10T16:38:11-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": 0,
"askSize": 0,
"open": 0,
"high": -13.5,
"low": -13.5,
"previousClose": -14.25,
"flag": "s"
},
{
"symbol": "_S_SP_ZCH5_ZCN5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCH5",
"leg2": "ZCN5",
"leg3": null,
"leg4": null,
"lastPrice": -14,
"change": 0.75,
"volume": 7444,
"tradeTime": "2024-10-11T13:19:55-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -14,
"askSize": 14300,
"open": -15,
"high": -14,
"low": -15,
"previousClose": -14.75,
"flag": ""
},
{
"symbol": "_S_SP_ZCH5_ZCU5",
"symbolName": "Corn Futures Standard Spread",
"type": "SP",
"leg1": "ZCH5",
"leg2": "ZCU5",
"leg3": null,
"leg4": null,
"lastPrice": -11,
"change": -1,
"volume": 455,
"tradeTime": "2024-10-11T13:19:30-05:00",
"serverTimestamp": "2024-10-11T13:40:00-05:00",
"ask": -10.75,
"askSize": 700,
"open": -9.25,
"high": -8.75,
"low": -11.5,
"previousClose": -10,
"flag": ""
}
]
}
XML
GET
GET https://ondemand.websol.barchart.com/getFuturesSpreads.xml?apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesSpreads.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Response
<?xml version="1.0" encoding="utf-8"?>
<getFuturesSpreads>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<symbol>_S_SP_ZCZ4_ZCH5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCH5</leg2>
<leg3/>
<leg4/>
<lastPrice>-17.25</lastPrice>
<change>0.5</change>
<volume>36524</volume>
<tradeTime>2024-10-11T13:19:59-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-17</ask>
<askSize>549900</askSize>
<open>-17.25</open>
<high>-16.75</high>
<low>-17.75</low>
<previousClose>-17.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_BF_ZCZ4_ZCH5_ZCK5</symbol>
<symbolName>Corn Futures Butterfly Spread</symbolName>
<type>BF</type>
<leg1>ZCZ4</leg1>
<leg2>ZCH5</leg2>
<leg3>ZCK5</leg3>
<leg4/>
<lastPrice>-8.5</lastPrice>
<change>0.5</change>
<volume>610</volume>
<tradeTime>2024-10-11T13:15:56-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-8.25</ask>
<askSize>6100</askSize>
<open>-8.5</open>
<high>-8.25</high>
<low>-8.75</low>
<previousClose>-9</previousClose>
<flag/>
</item>
<item>
<symbol>_S_CF_ZCZ4_ZCH5_ZCK5_ZCN5</symbol>
<symbolName>Corn Futures Condor Spread</symbolName>
<type>CF</type>
<leg1>ZCZ4</leg1>
<leg2>ZCH5</leg2>
<leg3>ZCK5</leg3>
<leg4>ZCN5</leg4>
<lastPrice>-11.75</lastPrice>
<change>-0.75</change>
<volume>0</volume>
<tradeTime>2024-10-10T16:38:17-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-11.75</high>
<low>-11.75</low>
<previousClose>-11</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_BF_ZCZ4_ZCH5_ZCN5</symbol>
<symbolName>Corn Futures Butterfly Spread</symbolName>
<type>BF</type>
<leg1>ZCZ4</leg1>
<leg2>ZCH5</leg2>
<leg3>ZCN5</leg3>
<leg4/>
<lastPrice>-2.75</lastPrice>
<change>0.25</change>
<volume>12</volume>
<tradeTime>2024-10-11T10:44:19-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-1</ask>
<askSize>200</askSize>
<open>-2.5</open>
<high>-2.5</high>
<low>-2.75</low>
<previousClose>-3</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCK5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCK5</leg2>
<leg3/>
<leg4/>
<lastPrice>-25.75</lastPrice>
<change>0.75</change>
<volume>9430</volume>
<tradeTime>2024-10-11T13:19:59-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-25.75</ask>
<askSize>35800</askSize>
<open>-26.25</open>
<high>-25.5</high>
<low>-26.5</low>
<previousClose>-26.5</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCN5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCN5</leg2>
<leg3/>
<leg4/>
<lastPrice>-31.25</lastPrice>
<change>1.25</change>
<volume>6720</volume>
<tradeTime>2024-10-11T13:19:55-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-31</ask>
<askSize>22000</askSize>
<open>-32</open>
<high>-31</high>
<low>-32.5</low>
<previousClose>-32.5</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCU5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCU5</leg2>
<leg3/>
<leg4/>
<lastPrice>-28.25</lastPrice>
<change>-0.5</change>
<volume>552</volume>
<tradeTime>2024-10-11T13:18:18-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-28</ask>
<askSize>1000</askSize>
<open>-26.25</open>
<high>-25.75</high>
<low>-28.75</low>
<previousClose>-27.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCZ5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCZ5</leg2>
<leg3/>
<leg4/>
<lastPrice>-34</lastPrice>
<change>-1</change>
<volume>3126</volume>
<tradeTime>2024-10-11T13:19:58-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-34</ask>
<askSize>500</askSize>
<open>-32.5</open>
<high>-31.25</high>
<low>-35</low>
<previousClose>-33</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCH6</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCH6</leg2>
<leg3/>
<leg4/>
<lastPrice>-45.25</lastPrice>
<change>-1.5</change>
<volume>10</volume>
<tradeTime>2024-10-11T11:14:32-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>-41.75</open>
<high>-41.25</high>
<low>-45.25</low>
<previousClose>-43.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCK6</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCK6</leg2>
<leg3/>
<leg4/>
<lastPrice>-50</lastPrice>
<change>-1.25</change>
<volume>0</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-50</high>
<low>-50</low>
<previousClose>-48.75</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCN6</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCN6</leg2>
<leg3/>
<leg4/>
<lastPrice>-53.5</lastPrice>
<change>-1</change>
<volume>0</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-53.5</high>
<low>-53.5</low>
<previousClose>-52.5</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCU6</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCU6</leg2>
<leg3/>
<leg4/>
<lastPrice>-41.75</lastPrice>
<change>-2.75</change>
<volume>4</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>-42.5</open>
<high>-41.75</high>
<low>-44</low>
<previousClose>-39</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCZ6</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCZ6</leg2>
<leg3/>
<leg4/>
<lastPrice>-41.75</lastPrice>
<change>-2.5</change>
<volume>1</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>-42.25</open>
<high>-41.75</high>
<low>-42.25</low>
<previousClose>-39.25</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCN7</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCN7</leg2>
<leg3/>
<leg4/>
<lastPrice>-58.5</lastPrice>
<change>-2.5</change>
<volume>0</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-58.5</high>
<low>-58.5</low>
<previousClose>-56</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCZ4_ZCZ7</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCZ4</leg1>
<leg2>ZCZ7</leg2>
<leg3/>
<leg4/>
<lastPrice>-37</lastPrice>
<change>-2.5</change>
<volume>0</volume>
<tradeTime>2024-10-11T13:20:00-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-37</high>
<low>-37</low>
<previousClose>-34.5</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCH5_ZCK5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCH5</leg1>
<leg2>ZCK5</leg2>
<leg3/>
<leg4/>
<lastPrice>-8.5</lastPrice>
<change>0.25</change>
<volume>9697</volume>
<tradeTime>2024-10-11T13:19:59-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-8.5</ask>
<askSize>157200</askSize>
<open>-9</open>
<high>-8.5</high>
<low>-9</low>
<previousClose>-8.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_BF_ZCH5_ZCK5_ZCN5</symbol>
<symbolName>Corn Futures Butterfly Spread</symbolName>
<type>BF</type>
<leg1>ZCH5</leg1>
<leg2>ZCK5</leg2>
<leg3>ZCN5</leg3>
<leg4/>
<lastPrice>-3.25</lastPrice>
<change>-0.5</change>
<volume>1674</volume>
<tradeTime>2024-10-11T13:07:45-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-3</ask>
<askSize>7300</askSize>
<open>-3</open>
<high>-2.75</high>
<low>-3.25</low>
<previousClose>-2.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_CF_ZCH5_ZCK5_ZCN5_ZCU5</symbol>
<symbolName>Corn Futures Condor Spread</symbolName>
<type>CF</type>
<leg1>ZCH5</leg1>
<leg2>ZCK5</leg2>
<leg3>ZCN5</leg3>
<leg4>ZCU5</leg4>
<lastPrice>-13.5</lastPrice>
<change>0.75</change>
<volume>0</volume>
<tradeTime>2024-10-10T16:38:11-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>0</ask>
<askSize>0</askSize>
<open>0</open>
<high>-13.5</high>
<low>-13.5</low>
<previousClose>-14.25</previousClose>
<flag>s</flag>
</item>
<item>
<symbol>_S_SP_ZCH5_ZCN5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCH5</leg1>
<leg2>ZCN5</leg2>
<leg3/>
<leg4/>
<lastPrice>-14</lastPrice>
<change>0.75</change>
<volume>7444</volume>
<tradeTime>2024-10-11T13:19:55-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-14</ask>
<askSize>14300</askSize>
<open>-15</open>
<high>-14</high>
<low>-15</low>
<previousClose>-14.75</previousClose>
<flag/>
</item>
<item>
<symbol>_S_SP_ZCH5_ZCU5</symbol>
<symbolName>Corn Futures Standard Spread</symbolName>
<type>SP</type>
<leg1>ZCH5</leg1>
<leg2>ZCU5</leg2>
<leg3/>
<leg4/>
<lastPrice>-11</lastPrice>
<change>-1</change>
<volume>455</volume>
<tradeTime>2024-10-11T13:19:30-05:00</tradeTime>
<serverTimestamp>2024-10-11T13:40:00-05:00</serverTimestamp>
<ask>-10.75</ask>
<askSize>700</askSize>
<open>-9.25</open>
<high>-8.75</high>
<low>-11.5</low>
<previousClose>-10</previousClose>
<flag/>
</item>
</getFuturesSpreads>
CSV
GET
GET https://ondemand.websol.barchart.com/getFuturesSpreads.csv?apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getFuturesSpreads.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&root=ZC&fields=open%2Chigh%2Cask%2CaskSize
Response
symbol,symbolName,type,leg1,leg2,leg3,leg4,lastPrice,change,volume,tradeTime,serverTimestamp,ask,askSize,open,high,low,previousClose,flag
"_S_SP_ZCZ4_ZCH5","Corn Futures Standard Spread","SP","ZCZ4","ZCH5","","","-17.25","0.5","36524","2024-10-11T13:19:59-05:00","2024-10-11T13:40:00-05:00","-17","549900","-17.25","-16.75","-17.75","-17.75",""
"_S_BF_ZCZ4_ZCH5_ZCK5","Corn Futures Butterfly Spread","BF","ZCZ4","ZCH5","ZCK5","","-8.5","0.5","610","2024-10-11T13:15:56-05:00","2024-10-11T13:40:00-05:00","-8.25","6100","-8.5","-8.25","-8.75","-9",""
"_S_CF_ZCZ4_ZCH5_ZCK5_ZCN5","Corn Futures Condor Spread","CF","ZCZ4","ZCH5","ZCK5","ZCN5","-11.75","-0.75","0","2024-10-10T16:38:17-05:00","2024-10-11T13:40:00-05:00","0","0","0","-11.75","-11.75","-11","s"
"_S_BF_ZCZ4_ZCH5_ZCN5","Corn Futures Butterfly Spread","BF","ZCZ4","ZCH5","ZCN5","","-2.75","0.25","12","2024-10-11T10:44:19-05:00","2024-10-11T13:40:00-05:00","-1","200","-2.5","-2.5","-2.75","-3",""
"_S_SP_ZCZ4_ZCK5","Corn Futures Standard Spread","SP","ZCZ4","ZCK5","","","-25.75","0.75","9430","2024-10-11T13:19:59-05:00","2024-10-11T13:40:00-05:00","-25.75","35800","-26.25","-25.5","-26.5","-26.5",""
"_S_SP_ZCZ4_ZCN5","Corn Futures Standard Spread","SP","ZCZ4","ZCN5","","","-31.25","1.25","6720","2024-10-11T13:19:55-05:00","2024-10-11T13:40:00-05:00","-31","22000","-32","-31","-32.5","-32.5",""
"_S_SP_ZCZ4_ZCU5","Corn Futures Standard Spread","SP","ZCZ4","ZCU5","","","-28.25","-0.5","552","2024-10-11T13:18:18-05:00","2024-10-11T13:40:00-05:00","-28","1000","-26.25","-25.75","-28.75","-27.75",""
"_S_SP_ZCZ4_ZCZ5","Corn Futures Standard Spread","SP","ZCZ4","ZCZ5","","","-34","-1","3126","2024-10-11T13:19:58-05:00","2024-10-11T13:40:00-05:00","-34","500","-32.5","-31.25","-35","-33",""
"_S_SP_ZCZ4_ZCH6","Corn Futures Standard Spread","SP","ZCZ4","ZCH6","","","-45.25","-1.5","10","2024-10-11T11:14:32-05:00","2024-10-11T13:40:00-05:00","0","0","-41.75","-41.25","-45.25","-43.75",""
"_S_SP_ZCZ4_ZCK6","Corn Futures Standard Spread","SP","ZCZ4","ZCK6","","","-50","-1.25","0","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","0","-50","-50","-48.75","s"
"_S_SP_ZCZ4_ZCN6","Corn Futures Standard Spread","SP","ZCZ4","ZCN6","","","-53.5","-1","0","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","0","-53.5","-53.5","-52.5","s"
"_S_SP_ZCZ4_ZCU6","Corn Futures Standard Spread","SP","ZCZ4","ZCU6","","","-41.75","-2.75","4","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","-42.5","-41.75","-44","-39","s"
"_S_SP_ZCZ4_ZCZ6","Corn Futures Standard Spread","SP","ZCZ4","ZCZ6","","","-41.75","-2.5","1","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","-42.25","-41.75","-42.25","-39.25","s"
"_S_SP_ZCZ4_ZCN7","Corn Futures Standard Spread","SP","ZCZ4","ZCN7","","","-58.5","-2.5","0","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","0","-58.5","-58.5","-56","s"
"_S_SP_ZCZ4_ZCZ7","Corn Futures Standard Spread","SP","ZCZ4","ZCZ7","","","-37","-2.5","0","2024-10-11T13:20:00-05:00","2024-10-11T13:40:00-05:00","0","0","0","-37","-37","-34.5","s"
"_S_SP_ZCH5_ZCK5","Corn Futures Standard Spread","SP","ZCH5","ZCK5","","","-8.5","0.25","9697","2024-10-11T13:19:59-05:00","2024-10-11T13:40:00-05:00","-8.5","157200","-9","-8.5","-9","-8.75",""
"_S_BF_ZCH5_ZCK5_ZCN5","Corn Futures Butterfly Spread","BF","ZCH5","ZCK5","ZCN5","","-3.25","-0.5","1674","2024-10-11T13:07:45-05:00","2024-10-11T13:40:00-05:00","-3","7300","-3","-2.75","-3.25","-2.75",""
"_S_CF_ZCH5_ZCK5_ZCN5_ZCU5","Corn Futures Condor Spread","CF","ZCH5","ZCK5","ZCN5","ZCU5","-13.5","0.75","0","2024-10-10T16:38:11-05:00","2024-10-11T13:40:00-05:00","0","0","0","-13.5","-13.5","-14.25","s"
"_S_SP_ZCH5_ZCN5","Corn Futures Standard Spread","SP","ZCH5","ZCN5","","","-14","0.75","7444","2024-10-11T13:19:55-05:00","2024-10-11T13:40:00-05:00","-14","14300","-15","-14","-15","-14.75",""
"_S_SP_ZCH5_ZCU5","Corn Futures Standard Spread","SP","ZCH5","ZCU5","","","-11","-1","455","2024-10-11T13:19:30-05:00","2024-10-11T13:40:00-05:00","-10.75","700","-9.25","-8.75","-11.5","-10",""
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'root' => 'ZC',
'fields' => 'open,high,ask,askSize',
];
$result = $ondemand->getFuturesSpreads($params);
var_dump($result);
Classic ASP
Dim ondemand
Dim result
Set ondemand = Server.CreateObject("MSSOAP.SoapClient30")
ondemand.ClientProperty("ServerHTTPRequest") = True
ondemand.MSSoapInit("https://ondemand.websol.barchart.com/service?wsdl")
Set result = ondemand.getFuturesSpreads("YOUR_API_KEY", "ZC", "open,high,ask,askSize")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getFuturesSpreads('YOUR_API_KEY', 'ZC', 'open,high,ask,askSize');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getFuturesSpreads('YOUR_API_KEY', 'ZC', 'open,high,ask,askSize')
print(result)
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getFuturesSpreads,
message: {
apikey: 'YOUR_API_KEY',
root: 'ZC',
fields: 'open,high,ask,askSize',
}
)
response.body