Forex Forward Curve API
getForexForwardCurves
The getForexForwardCurves API from Barchart OnDemand provides the bid, ask, and mid price data for all available forward curves (forward rates) for a given forex symbol.
View All APIsContact Us to Get Access
Inputs
symbolsrequired
A valid forex symbol.
Type
list (A comma or semi-colon delimited string.)
Example
^EURUSD
Outputs
symbol
always returned
always returned
The forex symbol.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
name
always returned
always returned
Name of the forex.
string
A sequence of characters. (example: GOOG)
A sequence of characters. (example: GOOG)
bid
always returned
always returned
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)
ask
always returned
always returned
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)
mid
always returned
always returned
The current mid 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)
lastUpdate
always returned
always returned
The exchange 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>.
forwardCurves
always returned
always returned
A multi-dimensional array with symbol, name, bid, ask, mid and last update timestamp for all available forward curves for the requested forex symbol.
enum
A type which includes a list of valid possible values.
A type which includes a list of valid possible values.
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/getForexForwardCurves.json?apikey=YOUR_API_KEY&symbols=%5EEURUSD
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getForexForwardCurves.json
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=%5EEURUSD
Response
{
"status": {
"code": 200,
"message": "Success."
},
"results": [
{
"symbol": "^EURUSD",
"name": "Euro\/U.S. Dollar",
"bid": 1.0428,
"ask": 1.0431,
"mid": 1.04295,
"lastUpdate": "2024-12-20T15:59:58-06:00",
"forwardCurves": [
{
"symbol": "EURUSD.O",
"name": "EUR\/USD Overnight Forward",
"bid": 1.2,
"ask": 1.22,
"mid": 1.19,
"open": 1.26,
"high": 1.26,
"low": 1.17,
"last": 1.19,
"previous": 0.4025,
"lastUpdate": "2024-12-20T09:05:02-06:00"
},
{
"symbol": "EURUSD.A",
"name": "EUR\/USD Tomorrow Forward",
"bid": 0.415,
"ask": 0.42,
"mid": 0.4175,
"open": 0.415,
"high": 0.419,
"low": 0.4055,
"last": 0.4175,
"previous": 1.25,
"lastUpdate": "2024-12-20T08:44:40-06:00"
},
{
"symbol": "EURUSD.S",
"name": "EUR\/USD Spot Forward",
"bid": 1.235,
"ask": 1.366,
"mid": 1.3005,
"open": 1.23,
"high": 1.3025,
"low": 0.415,
"last": 1.3005,
"previous": 0.401,
"lastUpdate": "2024-12-20T15:59:40-06:00"
},
{
"symbol": "EURUSD.B",
"name": "EUR\/USD 1-Week Forward",
"bid": 2.991,
"ask": 3.043,
"mid": 3.017,
"open": 3.328,
"high": 3.328,
"low": 2.765,
"last": 3.017,
"previous": 2.8995,
"lastUpdate": "2024-12-20T15:59:40-06:00"
},
{
"symbol": "EURUSD.C",
"name": "EUR\/USD 2-Week Forward",
"bid": 7.059,
"ask": 7.311,
"mid": 7.185,
"open": 7.5635,
"high": 7.8,
"low": 6.995,
"last": 7.185,
"previous": 7.164,
"lastUpdate": "2024-12-20T15:59:45-06:00"
},
{
"symbol": "EURUSD.D",
"name": "EUR\/USD 3-Week Forward",
"bid": 9.853,
"ask": 10.223,
"mid": 10.038,
"open": 10.3635,
"high": 10.3635,
"low": 9.855,
"last": 10.038,
"previous": 9.964,
"lastUpdate": "2024-12-20T15:59:45-06:00"
},
{
"symbol": "EURUSD.E",
"name": "EUR\/USD 1-Month Forward",
"bid": 13.852,
"ask": 14.385,
"mid": 14.1185,
"open": 14.3815,
"high": 14.3815,
"low": 13.925,
"last": 14.1185,
"previous": 13.981,
"lastUpdate": "2024-12-20T15:59:45-06:00"
},
{
"symbol": "EURUSD.G",
"name": "EUR\/USD 2-Month Forward",
"bid": 27.782,
"ask": 28.766,
"mid": 28.274,
"open": 28.0355,
"high": 28.63,
"low": 27.814,
"last": 28.274,
"previous": 28.4375,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.H",
"name": "EUR\/USD 3-Month Forward",
"bid": 42.178,
"ask": 43.5,
"mid": 42.839,
"open": 42.4955,
"high": 43.72,
"low": 41.61,
"last": 42.839,
"previous": 42.899,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.J",
"name": "EUR\/USD 4-Month Forward",
"bid": 58.957,
"ask": 60.577,
"mid": 59.767,
"open": 59.86,
"high": 62.75,
"low": 56.45,
"last": 59.767,
"previous": 59.2495,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.K",
"name": "EUR\/USD 5-Month Forward",
"bid": 78.807,
"ask": 80.657,
"mid": 79.732,
"open": 79.808,
"high": 85.3,
"low": 73.80001,
"last": 79.732,
"previous": 77.4205,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.M",
"name": "EUR\/USD 6-Month Forward",
"bid": 96.167,
"ask": 98.14,
"mid": 97.1535,
"open": 97.1245,
"high": 104.35,
"low": 89.35,
"last": 97.1535,
"previous": 96.4985,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.N",
"name": "EUR\/USD 7-Month Forward",
"bid": 115.073,
"ask": 117.372,
"mid": 116.2225,
"open": 116.0615,
"high": 123.95,
"low": 107.75,
"last": 116.2225,
"previous": 115.43449,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.Q",
"name": "EUR\/USD 8-Month Forward",
"bid": 135.614,
"ask": 138.25999,
"mid": 136.937,
"open": 136.07101,
"high": 144.10002,
"low": 128.3,
"last": 136.937,
"previous": 136.474,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.U",
"name": "EUR\/USD 9-Month Forward",
"bid": 155.041,
"ask": 158.013,
"mid": 156.52702,
"open": 155.7505,
"high": 162.89998,
"low": 148,
"last": 156.52702,
"previous": 155.10202,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.V",
"name": "EUR\/USD 10-Month Forward",
"bid": 174.785,
"ask": 178.084,
"mid": 176.43449,
"open": 175.392,
"high": 182.39999,
"low": 167.7,
"last": 176.43449,
"previous": 174.742,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.X",
"name": "EUR\/USD 11-Month Forward",
"bid": 195.065,
"ask": 198.702,
"mid": 196.8835,
"open": 195.23199,
"high": 202.89999,
"low": 188.10001,
"last": 196.8835,
"previous": 195.63901,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.1",
"name": "EUR\/USD 1-Year Forward",
"bid": 214.73801,
"ask": 218.702,
"mid": 216.72,
"open": 215.25751,
"high": 222.7,
"low": 207.7,
"last": 216.72,
"previous": 214.60249,
"lastUpdate": "2024-12-20T15:59:58-06:00"
},
{
"symbol": "EURUSD.2",
"name": "EUR\/USD 2-Year Forward",
"bid": 449.198,
"ask": 459.81299,
"mid": 454.50549,
"open": 449.40753,
"high": 459.20001,
"low": 447.87949,
"last": 454.50549,
"previous": 448.789,
"lastUpdate": "2024-12-20T15:59:57-06:00"
},
{
"symbol": "EURUSD.3",
"name": "EUR\/USD 3-Year Forward",
"bid": 671.54999,
"ask": 681.54999,
"mid": 676.54999,
"open": 673.2301,
"high": 681.09998,
"low": 661.50006,
"last": 676.54999,
"previous": 673.2301,
"lastUpdate": "2024-12-20T15:59:53-06:00"
},
{
"symbol": "EURUSD.4",
"name": "EUR\/USD 4-Year Forward",
"bid": 878.26001,
"ask": 898.26001,
"mid": 888.25995,
"open": 888.91998,
"high": 891.75,
"low": 872,
"last": 888.25995,
"previous": 888.91998,
"lastUpdate": "2024-12-20T15:59:53-06:00"
},
{
"symbol": "EURUSD.5",
"name": "EUR\/USD 5-Year Forward",
"bid": 1078.05005,
"ask": 1098.05005,
"mid": 1088.05017,
"open": 1095.02002,
"high": 1104,
"low": 1067,
"last": 1088.05017,
"previous": 1095.02002,
"lastUpdate": "2024-12-20T15:59:53-06:00"
},
{
"symbol": "EURUSD.6",
"name": "EUR\/USD 6-Year Forward",
"bid": 1278,
"ask": 1290,
"mid": 1284,
"open": 1296.99988,
"high": 1308,
"low": 1260.99988,
"last": 1284,
"previous": 1298,
"lastUpdate": "2024-12-20T15:59:58-06:00"
},
{
"symbol": "EURUSD.7",
"name": "EUR\/USD 7-Year Forward",
"bid": 1468,
"ask": 1483,
"mid": 1475.5,
"open": 1495.5,
"high": 1508.5,
"low": 1447.5,
"last": 1475.5,
"previous": 1500.5,
"lastUpdate": "2024-12-20T15:59:48-06:00"
},
{
"symbol": "EURUSD.Y",
"name": "EUR\/USD 10-Year Forward",
"bid": 2042,
"ask": 2082,
"mid": 2062,
"open": 2081,
"high": 2108,
"low": 2028,
"last": 2062,
"previous": 2081,
"lastUpdate": "2024-12-20T15:59:58-06:00"
}
]
}
]
}
XML
GET
GET https://ondemand.websol.barchart.com/getForexForwardCurves.xml?apikey=YOUR_API_KEY&symbols=%5EEURUSD
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getForexForwardCurves.xml
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=%5EEURUSD
Response
<?xml version="1.0" encoding="utf-8"?>
<getForexForwardCurves>
<status>
<code>200</code>
<message>Success.</message>
</status>
<item>
<symbol>^EURUSD</symbol>
<name>Euro/U.S. Dollar</name>
<bid>1.0428</bid>
<ask>1.0431</ask>
<mid>1.04295</mid>
<lastUpdate>2024-12-20T15:59:58-06:00</lastUpdate>
<forwardCurves>
<data>
<symbol>EURUSD.O</symbol>
<name>EUR/USD Overnight Forward</name>
<bid>1.2</bid>
<ask>1.22</ask>
<mid>1.19</mid>
<open>1.26</open>
<high>1.26</high>
<low>1.17</low>
<last>1.19</last>
<previous>0.4025</previous>
<lastUpdate>2024-12-20T09:05:02-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.A</symbol>
<name>EUR/USD Tomorrow Forward</name>
<bid>0.415</bid>
<ask>0.42</ask>
<mid>0.4175</mid>
<open>0.415</open>
<high>0.419</high>
<low>0.4055</low>
<last>0.4175</last>
<previous>1.25</previous>
<lastUpdate>2024-12-20T08:44:40-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.S</symbol>
<name>EUR/USD Spot Forward</name>
<bid>1.235</bid>
<ask>1.366</ask>
<mid>1.3005</mid>
<open>1.23</open>
<high>1.3025</high>
<low>0.415</low>
<last>1.3005</last>
<previous>0.401</previous>
<lastUpdate>2024-12-20T15:59:40-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.B</symbol>
<name>EUR/USD 1-Week Forward</name>
<bid>2.991</bid>
<ask>3.043</ask>
<mid>3.017</mid>
<open>3.328</open>
<high>3.328</high>
<low>2.765</low>
<last>3.017</last>
<previous>2.8995</previous>
<lastUpdate>2024-12-20T15:59:40-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.C</symbol>
<name>EUR/USD 2-Week Forward</name>
<bid>7.059</bid>
<ask>7.311</ask>
<mid>7.185</mid>
<open>7.5635</open>
<high>7.8</high>
<low>6.995</low>
<last>7.185</last>
<previous>7.164</previous>
<lastUpdate>2024-12-20T15:59:45-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.D</symbol>
<name>EUR/USD 3-Week Forward</name>
<bid>9.853</bid>
<ask>10.223</ask>
<mid>10.038</mid>
<open>10.3635</open>
<high>10.3635</high>
<low>9.855</low>
<last>10.038</last>
<previous>9.964</previous>
<lastUpdate>2024-12-20T15:59:45-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.E</symbol>
<name>EUR/USD 1-Month Forward</name>
<bid>13.852</bid>
<ask>14.385</ask>
<mid>14.1185</mid>
<open>14.3815</open>
<high>14.3815</high>
<low>13.925</low>
<last>14.1185</last>
<previous>13.981</previous>
<lastUpdate>2024-12-20T15:59:45-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.G</symbol>
<name>EUR/USD 2-Month Forward</name>
<bid>27.782</bid>
<ask>28.766</ask>
<mid>28.274</mid>
<open>28.0355</open>
<high>28.63</high>
<low>27.814</low>
<last>28.274</last>
<previous>28.4375</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.H</symbol>
<name>EUR/USD 3-Month Forward</name>
<bid>42.178</bid>
<ask>43.5</ask>
<mid>42.839</mid>
<open>42.4955</open>
<high>43.72</high>
<low>41.61</low>
<last>42.839</last>
<previous>42.899</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.J</symbol>
<name>EUR/USD 4-Month Forward</name>
<bid>58.957</bid>
<ask>60.577</ask>
<mid>59.767</mid>
<open>59.86</open>
<high>62.75</high>
<low>56.45</low>
<last>59.767</last>
<previous>59.2495</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.K</symbol>
<name>EUR/USD 5-Month Forward</name>
<bid>78.807</bid>
<ask>80.657</ask>
<mid>79.732</mid>
<open>79.808</open>
<high>85.3</high>
<low>73.80001</low>
<last>79.732</last>
<previous>77.4205</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.M</symbol>
<name>EUR/USD 6-Month Forward</name>
<bid>96.167</bid>
<ask>98.14</ask>
<mid>97.1535</mid>
<open>97.1245</open>
<high>104.35</high>
<low>89.35</low>
<last>97.1535</last>
<previous>96.4985</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.N</symbol>
<name>EUR/USD 7-Month Forward</name>
<bid>115.073</bid>
<ask>117.372</ask>
<mid>116.2225</mid>
<open>116.0615</open>
<high>123.95</high>
<low>107.75</low>
<last>116.2225</last>
<previous>115.43449</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.Q</symbol>
<name>EUR/USD 8-Month Forward</name>
<bid>135.614</bid>
<ask>138.25999</ask>
<mid>136.937</mid>
<open>136.07101</open>
<high>144.10002</high>
<low>128.3</low>
<last>136.937</last>
<previous>136.474</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.U</symbol>
<name>EUR/USD 9-Month Forward</name>
<bid>155.041</bid>
<ask>158.013</ask>
<mid>156.52702</mid>
<open>155.7505</open>
<high>162.89998</high>
<low>148</low>
<last>156.52702</last>
<previous>155.10202</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.V</symbol>
<name>EUR/USD 10-Month Forward</name>
<bid>174.785</bid>
<ask>178.084</ask>
<mid>176.43449</mid>
<open>175.392</open>
<high>182.39999</high>
<low>167.7</low>
<last>176.43449</last>
<previous>174.742</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.X</symbol>
<name>EUR/USD 11-Month Forward</name>
<bid>195.065</bid>
<ask>198.702</ask>
<mid>196.8835</mid>
<open>195.23199</open>
<high>202.89999</high>
<low>188.10001</low>
<last>196.8835</last>
<previous>195.63901</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.1</symbol>
<name>EUR/USD 1-Year Forward</name>
<bid>214.73801</bid>
<ask>218.702</ask>
<mid>216.72</mid>
<open>215.25751</open>
<high>222.7</high>
<low>207.7</low>
<last>216.72</last>
<previous>214.60249</previous>
<lastUpdate>2024-12-20T15:59:58-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.2</symbol>
<name>EUR/USD 2-Year Forward</name>
<bid>449.198</bid>
<ask>459.81299</ask>
<mid>454.50549</mid>
<open>449.40753</open>
<high>459.20001</high>
<low>447.87949</low>
<last>454.50549</last>
<previous>448.789</previous>
<lastUpdate>2024-12-20T15:59:57-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.3</symbol>
<name>EUR/USD 3-Year Forward</name>
<bid>671.54999</bid>
<ask>681.54999</ask>
<mid>676.54999</mid>
<open>673.2301</open>
<high>681.09998</high>
<low>661.50006</low>
<last>676.54999</last>
<previous>673.2301</previous>
<lastUpdate>2024-12-20T15:59:53-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.4</symbol>
<name>EUR/USD 4-Year Forward</name>
<bid>878.26001</bid>
<ask>898.26001</ask>
<mid>888.25995</mid>
<open>888.91998</open>
<high>891.75</high>
<low>872</low>
<last>888.25995</last>
<previous>888.91998</previous>
<lastUpdate>2024-12-20T15:59:53-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.5</symbol>
<name>EUR/USD 5-Year Forward</name>
<bid>1078.05005</bid>
<ask>1098.05005</ask>
<mid>1088.05017</mid>
<open>1095.02002</open>
<high>1104</high>
<low>1067</low>
<last>1088.05017</last>
<previous>1095.02002</previous>
<lastUpdate>2024-12-20T15:59:53-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.6</symbol>
<name>EUR/USD 6-Year Forward</name>
<bid>1278</bid>
<ask>1290</ask>
<mid>1284</mid>
<open>1296.99988</open>
<high>1308</high>
<low>1260.99988</low>
<last>1284</last>
<previous>1298</previous>
<lastUpdate>2024-12-20T15:59:58-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.7</symbol>
<name>EUR/USD 7-Year Forward</name>
<bid>1468</bid>
<ask>1483</ask>
<mid>1475.5</mid>
<open>1495.5</open>
<high>1508.5</high>
<low>1447.5</low>
<last>1475.5</last>
<previous>1500.5</previous>
<lastUpdate>2024-12-20T15:59:48-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.Y</symbol>
<name>EUR/USD 10-Year Forward</name>
<bid>2042</bid>
<ask>2082</ask>
<mid>2062</mid>
<open>2081</open>
<high>2108</high>
<low>2028</low>
<last>2062</last>
<previous>2081</previous>
<lastUpdate>2024-12-20T15:59:58-06:00</lastUpdate>
</data>
</forwardCurves>
</item>
</getForexForwardCurves>
CSV
GET
GET https://ondemand.websol.barchart.com/getForexForwardCurves.csv?apikey=YOUR_API_KEY&symbols=%5EEURUSD
Host: ondemand.websol.barchart.com
POST
POST https://ondemand.websol.barchart.com/getForexForwardCurves.csv
Host: ondemand.websol.barchart.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
apikey=YOUR_API_KEY&symbols=%5EEURUSD
Response
symbol,name,bid,ask,mid,open,high,low,last,previous,lastUpdate
"^EURUSD","Euro/U.S. Dollar","1.0428","1.0431","1.04295","","","","","","2024-12-20T15:59:58-06:00"
"EURUSD.O","EUR/USD Overnight Forward","1.2","1.22","1.19","1.26","1.26","1.17","1.19","0.4025","2024-12-20T09:05:02-06:00"
"EURUSD.A","EUR/USD Tomorrow Forward","0.415","0.42","0.4175","0.415","0.419","0.4055","0.4175","1.25","2024-12-20T08:44:40-06:00"
"EURUSD.S","EUR/USD Spot Forward","1.235","1.366","1.3005","1.23","1.3025","0.415","1.3005","0.401","2024-12-20T15:59:40-06:00"
"EURUSD.B","EUR/USD 1-Week Forward","2.991","3.043","3.017","3.328","3.328","2.765","3.017","2.8995","2024-12-20T15:59:40-06:00"
"EURUSD.C","EUR/USD 2-Week Forward","7.059","7.311","7.185","7.5635","7.8","6.995","7.185","7.164","2024-12-20T15:59:45-06:00"
"EURUSD.D","EUR/USD 3-Week Forward","9.853","10.223","10.038","10.3635","10.3635","9.855","10.038","9.964","2024-12-20T15:59:45-06:00"
"EURUSD.E","EUR/USD 1-Month Forward","13.852","14.385","14.1185","14.3815","14.3815","13.925","14.1185","13.981","2024-12-20T15:59:45-06:00"
"EURUSD.G","EUR/USD 2-Month Forward","27.782","28.766","28.274","28.0355","28.63","27.814","28.274","28.4375","2024-12-20T15:59:57-06:00"
"EURUSD.H","EUR/USD 3-Month Forward","42.178","43.5","42.839","42.4955","43.72","41.61","42.839","42.899","2024-12-20T15:59:57-06:00"
"EURUSD.J","EUR/USD 4-Month Forward","58.957","60.577","59.767","59.86","62.75","56.45","59.767","59.2495","2024-12-20T15:59:57-06:00"
"EURUSD.K","EUR/USD 5-Month Forward","78.807","80.657","79.732","79.808","85.3","73.80001","79.732","77.4205","2024-12-20T15:59:57-06:00"
"EURUSD.M","EUR/USD 6-Month Forward","96.167","98.14","97.1535","97.1245","104.35","89.35","97.1535","96.4985","2024-12-20T15:59:57-06:00"
"EURUSD.N","EUR/USD 7-Month Forward","115.073","117.372","116.2225","116.0615","123.95","107.75","116.2225","115.43449","2024-12-20T15:59:57-06:00"
"EURUSD.Q","EUR/USD 8-Month Forward","135.614","138.25999","136.937","136.07101","144.10002","128.3","136.937","136.474","2024-12-20T15:59:57-06:00"
"EURUSD.U","EUR/USD 9-Month Forward","155.041","158.013","156.52702","155.7505","162.89998","148","156.52702","155.10202","2024-12-20T15:59:57-06:00"
"EURUSD.V","EUR/USD 10-Month Forward","174.785","178.084","176.43449","175.392","182.39999","167.7","176.43449","174.742","2024-12-20T15:59:57-06:00"
"EURUSD.X","EUR/USD 11-Month Forward","195.065","198.702","196.8835","195.23199","202.89999","188.10001","196.8835","195.63901","2024-12-20T15:59:57-06:00"
"EURUSD.1","EUR/USD 1-Year Forward","214.73801","218.702","216.72","215.25751","222.7","207.7","216.72","214.60249","2024-12-20T15:59:58-06:00"
"EURUSD.2","EUR/USD 2-Year Forward","449.198","459.81299","454.50549","449.40753","459.20001","447.87949","454.50549","448.789","2024-12-20T15:59:57-06:00"
PHP
<?php
$ondemand = new SoapClient('https://ondemand.websol.barchart.com/service?wsdl');
$params = [
'apikey' => 'YOUR_API_KEY',
'symbols' => '^EURUSD',
];
$result = $ondemand->getForexForwardCurves($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.getForexForwardCurves("YOUR_API_KEY", "^EURUSD")
Perl
use SOAP::Lite;
use SOAP::WSDL;
my $ondemand = SOAP::Lite
-> service('https://ondemand.websol.barchart.com/service?wsdl');
my $result = $ondemand->getForexForwardCurves('YOUR_API_KEY', '^EURUSD');
print $result;
Python
from suds.client import Client
ondemand = Client('https://ondemand.websol.barchart.com/service?wsdl')
result = ondemand.service.getForexForwardCurves('YOUR_API_KEY', '^EURUSD')
print(result)
Ruby
require 'savon'
ondemand = Savon.client(wsdl: 'https://ondemand.websol.barchart.com/service?wsdl')
response = ondemand.call(
:getForexForwardCurves,
message: {
apikey: 'YOUR_API_KEY',
symbols: '^EURUSD',
}
)
response.body