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.0532,
"ask": 1.0535,
"mid": 1.05335,
"lastUpdate": "2024-11-21T02:24:34-06:00",
"forwardCurves": [
{
"symbol": "EURUSD.O",
"name": "EUR\/USD Overnight Forward",
"bid": 0.405,
"ask": 0.406,
"mid": 0.4055,
"open": 0.42,
"high": 0.42,
"low": 0.4045,
"last": 0.4055,
"previous": 0.4285,
"lastUpdate": "2024-11-21T01:51:00-06:00"
},
{
"symbol": "EURUSD.A",
"name": "EUR\/USD Tomorrow Forward",
"bid": 1.221,
"ask": 1.223,
"mid": 1.222,
"open": 1.225,
"high": 1.2315,
"low": 1.2215,
"last": 1.222,
"previous": 0.4135,
"lastUpdate": "2024-11-21T01:55:00-06:00"
},
{
"symbol": "EURUSD.S",
"name": "EUR\/USD Spot Forward",
"bid": 0.396,
"ask": 0.424,
"mid": 0.41,
"open": 1.6405,
"high": 1.6405,
"low": 0.4095,
"last": 0.41,
"previous": 1.2315,
"lastUpdate": "2024-11-21T02:24:00-06:00"
},
{
"symbol": "EURUSD.B",
"name": "EUR\/USD 1-Week Forward",
"bid": 2.879,
"ask": 3.003,
"mid": 2.941,
"open": 2.9515,
"high": 3.02,
"low": 2.941,
"last": 2.941,
"previous": 2.8725,
"lastUpdate": "2024-11-21T02:24:00-06:00"
},
{
"symbol": "EURUSD.C",
"name": "EUR\/USD 2-Week Forward",
"bid": 5.723,
"ask": 5.918,
"mid": 5.8205,
"open": 5.8375,
"high": 6.09,
"low": 5.8205,
"last": 5.8205,
"previous": 5.8335,
"lastUpdate": "2024-11-21T02:24:05-06:00"
},
{
"symbol": "EURUSD.D",
"name": "EUR\/USD 3-Week Forward",
"bid": 8.607,
"ask": 8.822,
"mid": 8.7145,
"open": 8.737,
"high": 9.08,
"low": 8.708,
"last": 8.7145,
"previous": 8.711,
"lastUpdate": "2024-11-21T02:24:00-06:00"
},
{
"symbol": "EURUSD.E",
"name": "EUR\/USD 1-Month Forward",
"bid": 13.734,
"ask": 13.875,
"mid": 13.8045,
"open": 13.8235,
"high": 14,
"low": 13.78,
"last": 13.8045,
"previous": 13.172,
"lastUpdate": "2024-11-21T02:24:05-06:00"
},
{
"symbol": "EURUSD.G",
"name": "EUR\/USD 2-Month Forward",
"bid": 29.615,
"ask": 30.121,
"mid": 29.868,
"open": 31.062,
"high": 31.062,
"low": 29.51,
"last": 29.868,
"previous": 28.711,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.H",
"name": "EUR\/USD 3-Month Forward",
"bid": 44.534,
"ask": 45.19,
"mid": 44.862,
"open": 45.9905,
"high": 45.9905,
"low": 44.08,
"last": 44.862,
"previous": 45.455,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.J",
"name": "EUR\/USD 4-Month Forward",
"bid": 60.531,
"ask": 61.285,
"mid": 60.908,
"open": 61.991,
"high": 61.991,
"low": 59.75,
"last": 60.908,
"previous": 61.412,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.K",
"name": "EUR\/USD 5-Month Forward",
"bid": 78.656,
"ask": 79.464,
"mid": 79.06,
"open": 80.1725,
"high": 80.1725,
"low": 76.5485,
"last": 79.06,
"previous": 78.3185,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.M",
"name": "EUR\/USD 6-Month Forward",
"bid": 98.628,
"ask": 99.43,
"mid": 99.029,
"open": 100.1955,
"high": 100.1955,
"low": 93.375,
"last": 99.029,
"previous": 97.122,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.N",
"name": "EUR\/USD 7-Month Forward",
"bid": 116.907,
"ask": 117.909,
"mid": 117.408,
"open": 118.6125,
"high": 118.6125,
"low": 108.577,
"last": 117.408,
"previous": 117.35249,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.Q",
"name": "EUR\/USD 8-Month Forward",
"bid": 135.806,
"ask": 137.03799,
"mid": 136.422,
"open": 137.67999,
"high": 137.67999,
"low": 123.9275,
"last": 136.422,
"previous": 135.7845,
"lastUpdate": "2024-11-21T02:24:33-06:00"
},
{
"symbol": "EURUSD.U",
"name": "EUR\/USD 9-Month Forward",
"bid": 155.41901,
"ask": 156.91,
"mid": 156.16451,
"open": 157.4695,
"high": 157.4695,
"low": 154.39999,
"last": 156.16451,
"previous": 155.55502,
"lastUpdate": "2024-11-21T02:24:33-06:00"
},
{
"symbol": "EURUSD.V",
"name": "EUR\/USD 10-Month Forward",
"bid": 175.067,
"ask": 176.842,
"mid": 175.9545,
"open": 177.30901,
"high": 177.30901,
"low": 174.2,
"last": 175.9545,
"previous": 175.3925,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.X",
"name": "EUR\/USD 11-Month Forward",
"bid": 195.49899,
"ask": 197.591,
"mid": 196.545,
"open": 197.936,
"high": 197.94299,
"low": 194.3,
"last": 196.545,
"previous": 194.7355,
"lastUpdate": "2024-11-21T02:24:31-06:00"
},
{
"symbol": "EURUSD.1",
"name": "EUR\/USD 1-Year Forward",
"bid": 213.817,
"ask": 216.217,
"mid": 215.017,
"open": 216.44051,
"high": 216.56149,
"low": 212.10001,
"last": 215.017,
"previous": 215.80447,
"lastUpdate": "2024-11-21T02:24:32-06:00"
},
{
"symbol": "EURUSD.2",
"name": "EUR\/USD 2-Year Forward",
"bid": 433.177,
"ask": 439.59201,
"mid": 436.38449,
"open": 438.04651,
"high": 441.20001,
"low": 403.01999,
"last": 436.38449,
"previous": 436.91101,
"lastUpdate": "2024-11-21T02:24:33-06:00"
},
{
"symbol": "EURUSD.3",
"name": "EUR\/USD 3-Year Forward",
"bid": 631,
"ask": 638,
"mid": 634.5,
"open": 634.15002,
"high": 643.09998,
"low": 629.5,
"last": 634.5,
"previous": 634.30011,
"lastUpdate": "2024-11-21T02:21:00-06:00"
},
{
"symbol": "EURUSD.4",
"name": "EUR\/USD 4-Year Forward",
"bid": 816,
"ask": 826,
"mid": 821,
"open": 818.64001,
"high": 822,
"low": 812,
"last": 821,
"previous": 819.03003,
"lastUpdate": "2024-11-21T02:24:25-06:00"
},
{
"symbol": "EURUSD.5",
"name": "EUR\/USD 5-Year Forward",
"bid": 995,
"ask": 1005,
"mid": 1000,
"open": 997.88,
"high": 1001,
"low": 989,
"last": 1000,
"previous": 998.59003,
"lastUpdate": "2024-11-21T02:24:00-06:00"
},
{
"symbol": "EURUSD.6",
"name": "EUR\/USD 6-Year Forward",
"bid": 1170,
"ask": 1182,
"mid": 1176,
"open": 1172,
"high": 1178,
"low": 1163,
"last": 1176,
"previous": 1172.99988,
"lastUpdate": "2024-11-21T02:24:17-06:00"
},
{
"symbol": "EURUSD.7",
"name": "EUR\/USD 7-Year Forward",
"bid": 1357,
"ask": 1372,
"mid": 1364.5,
"open": 1359.5,
"high": 1367.5,
"low": 1348.5,
"last": 1364.5,
"previous": 1360.5,
"lastUpdate": "2024-11-21T02:24:27-06:00"
},
{
"symbol": "EURUSD.Y",
"name": "EUR\/USD 10-Year Forward",
"bid": 1888,
"ask": 1928,
"mid": 1908,
"open": 1898,
"high": 1914,
"low": 1892,
"last": 1908,
"previous": 1906,
"lastUpdate": "2024-11-21T02:24:27-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.0532</bid>
<ask>1.0535</ask>
<mid>1.05335</mid>
<lastUpdate>2024-11-21T02:24:34-06:00</lastUpdate>
<forwardCurves>
<data>
<symbol>EURUSD.O</symbol>
<name>EUR/USD Overnight Forward</name>
<bid>0.405</bid>
<ask>0.406</ask>
<mid>0.4055</mid>
<open>0.42</open>
<high>0.42</high>
<low>0.4045</low>
<last>0.4055</last>
<previous>0.4285</previous>
<lastUpdate>2024-11-21T01:51:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.A</symbol>
<name>EUR/USD Tomorrow Forward</name>
<bid>1.221</bid>
<ask>1.223</ask>
<mid>1.222</mid>
<open>1.225</open>
<high>1.2315</high>
<low>1.2215</low>
<last>1.222</last>
<previous>0.4135</previous>
<lastUpdate>2024-11-21T01:55:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.S</symbol>
<name>EUR/USD Spot Forward</name>
<bid>0.396</bid>
<ask>0.424</ask>
<mid>0.41</mid>
<open>1.6405</open>
<high>1.6405</high>
<low>0.4095</low>
<last>0.41</last>
<previous>1.2315</previous>
<lastUpdate>2024-11-21T02:24:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.B</symbol>
<name>EUR/USD 1-Week Forward</name>
<bid>2.879</bid>
<ask>3.003</ask>
<mid>2.941</mid>
<open>2.9515</open>
<high>3.02</high>
<low>2.941</low>
<last>2.941</last>
<previous>2.8725</previous>
<lastUpdate>2024-11-21T02:24:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.C</symbol>
<name>EUR/USD 2-Week Forward</name>
<bid>5.723</bid>
<ask>5.918</ask>
<mid>5.8205</mid>
<open>5.8375</open>
<high>6.09</high>
<low>5.8205</low>
<last>5.8205</last>
<previous>5.8335</previous>
<lastUpdate>2024-11-21T02:24:05-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.D</symbol>
<name>EUR/USD 3-Week Forward</name>
<bid>8.607</bid>
<ask>8.822</ask>
<mid>8.7145</mid>
<open>8.737</open>
<high>9.08</high>
<low>8.708</low>
<last>8.7145</last>
<previous>8.711</previous>
<lastUpdate>2024-11-21T02:24:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.E</symbol>
<name>EUR/USD 1-Month Forward</name>
<bid>13.734</bid>
<ask>13.875</ask>
<mid>13.8045</mid>
<open>13.8235</open>
<high>14</high>
<low>13.78</low>
<last>13.8045</last>
<previous>13.172</previous>
<lastUpdate>2024-11-21T02:24:05-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.G</symbol>
<name>EUR/USD 2-Month Forward</name>
<bid>29.615</bid>
<ask>30.121</ask>
<mid>29.868</mid>
<open>31.062</open>
<high>31.062</high>
<low>29.51</low>
<last>29.868</last>
<previous>28.711</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.H</symbol>
<name>EUR/USD 3-Month Forward</name>
<bid>44.534</bid>
<ask>45.19</ask>
<mid>44.862</mid>
<open>45.9905</open>
<high>45.9905</high>
<low>44.08</low>
<last>44.862</last>
<previous>45.455</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.J</symbol>
<name>EUR/USD 4-Month Forward</name>
<bid>60.531</bid>
<ask>61.285</ask>
<mid>60.908</mid>
<open>61.991</open>
<high>61.991</high>
<low>59.75</low>
<last>60.908</last>
<previous>61.412</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.K</symbol>
<name>EUR/USD 5-Month Forward</name>
<bid>78.656</bid>
<ask>79.464</ask>
<mid>79.06</mid>
<open>80.1725</open>
<high>80.1725</high>
<low>76.5485</low>
<last>79.06</last>
<previous>78.3185</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.M</symbol>
<name>EUR/USD 6-Month Forward</name>
<bid>98.628</bid>
<ask>99.43</ask>
<mid>99.029</mid>
<open>100.1955</open>
<high>100.1955</high>
<low>93.375</low>
<last>99.029</last>
<previous>97.122</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.N</symbol>
<name>EUR/USD 7-Month Forward</name>
<bid>116.907</bid>
<ask>117.909</ask>
<mid>117.408</mid>
<open>118.6125</open>
<high>118.6125</high>
<low>108.577</low>
<last>117.408</last>
<previous>117.35249</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.Q</symbol>
<name>EUR/USD 8-Month Forward</name>
<bid>135.806</bid>
<ask>137.03799</ask>
<mid>136.422</mid>
<open>137.67999</open>
<high>137.67999</high>
<low>123.9275</low>
<last>136.422</last>
<previous>135.7845</previous>
<lastUpdate>2024-11-21T02:24:33-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.U</symbol>
<name>EUR/USD 9-Month Forward</name>
<bid>155.41901</bid>
<ask>156.91</ask>
<mid>156.16451</mid>
<open>157.4695</open>
<high>157.4695</high>
<low>154.39999</low>
<last>156.16451</last>
<previous>155.55502</previous>
<lastUpdate>2024-11-21T02:24:33-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.V</symbol>
<name>EUR/USD 10-Month Forward</name>
<bid>175.067</bid>
<ask>176.842</ask>
<mid>175.9545</mid>
<open>177.30901</open>
<high>177.30901</high>
<low>174.2</low>
<last>175.9545</last>
<previous>175.3925</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.X</symbol>
<name>EUR/USD 11-Month Forward</name>
<bid>195.49899</bid>
<ask>197.591</ask>
<mid>196.545</mid>
<open>197.936</open>
<high>197.94299</high>
<low>194.3</low>
<last>196.545</last>
<previous>194.7355</previous>
<lastUpdate>2024-11-21T02:24:31-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.1</symbol>
<name>EUR/USD 1-Year Forward</name>
<bid>213.817</bid>
<ask>216.217</ask>
<mid>215.017</mid>
<open>216.44051</open>
<high>216.56149</high>
<low>212.10001</low>
<last>215.017</last>
<previous>215.80447</previous>
<lastUpdate>2024-11-21T02:24:32-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.2</symbol>
<name>EUR/USD 2-Year Forward</name>
<bid>433.177</bid>
<ask>439.59201</ask>
<mid>436.38449</mid>
<open>438.04651</open>
<high>441.20001</high>
<low>403.01999</low>
<last>436.38449</last>
<previous>436.91101</previous>
<lastUpdate>2024-11-21T02:24:33-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.3</symbol>
<name>EUR/USD 3-Year Forward</name>
<bid>631</bid>
<ask>638</ask>
<mid>634.5</mid>
<open>634.15002</open>
<high>643.09998</high>
<low>629.5</low>
<last>634.5</last>
<previous>634.30011</previous>
<lastUpdate>2024-11-21T02:21:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.4</symbol>
<name>EUR/USD 4-Year Forward</name>
<bid>816</bid>
<ask>826</ask>
<mid>821</mid>
<open>818.64001</open>
<high>822</high>
<low>812</low>
<last>821</last>
<previous>819.03003</previous>
<lastUpdate>2024-11-21T02:24:25-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.5</symbol>
<name>EUR/USD 5-Year Forward</name>
<bid>995</bid>
<ask>1005</ask>
<mid>1000</mid>
<open>997.88</open>
<high>1001</high>
<low>989</low>
<last>1000</last>
<previous>998.59003</previous>
<lastUpdate>2024-11-21T02:24:00-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.6</symbol>
<name>EUR/USD 6-Year Forward</name>
<bid>1170</bid>
<ask>1182</ask>
<mid>1176</mid>
<open>1172</open>
<high>1178</high>
<low>1163</low>
<last>1176</last>
<previous>1172.99988</previous>
<lastUpdate>2024-11-21T02:24:17-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.7</symbol>
<name>EUR/USD 7-Year Forward</name>
<bid>1357</bid>
<ask>1372</ask>
<mid>1364.5</mid>
<open>1359.5</open>
<high>1367.5</high>
<low>1348.5</low>
<last>1364.5</last>
<previous>1360.5</previous>
<lastUpdate>2024-11-21T02:24:27-06:00</lastUpdate>
</data>
<data>
<symbol>EURUSD.Y</symbol>
<name>EUR/USD 10-Year Forward</name>
<bid>1888</bid>
<ask>1928</ask>
<mid>1908</mid>
<open>1898</open>
<high>1914</high>
<low>1892</low>
<last>1908</last>
<previous>1906</previous>
<lastUpdate>2024-11-21T02:24:27-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.0532","1.0535","1.05335","","","","","","2024-11-21T02:24:34-06:00"
"EURUSD.O","EUR/USD Overnight Forward","0.405","0.406","0.4055","0.42","0.42","0.4045","0.4055","0.4285","2024-11-21T01:51:00-06:00"
"EURUSD.A","EUR/USD Tomorrow Forward","1.221","1.223","1.222","1.225","1.2315","1.2215","1.222","0.4135","2024-11-21T01:55:00-06:00"
"EURUSD.S","EUR/USD Spot Forward","0.396","0.424","0.41","1.6405","1.6405","0.4095","0.41","1.2315","2024-11-21T02:24:00-06:00"
"EURUSD.B","EUR/USD 1-Week Forward","2.879","3.003","2.941","2.9515","3.02","2.941","2.941","2.8725","2024-11-21T02:24:00-06:00"
"EURUSD.C","EUR/USD 2-Week Forward","5.723","5.918","5.8205","5.8375","6.09","5.8205","5.8205","5.8335","2024-11-21T02:24:05-06:00"
"EURUSD.D","EUR/USD 3-Week Forward","8.607","8.822","8.7145","8.737","9.08","8.708","8.7145","8.711","2024-11-21T02:24:00-06:00"
"EURUSD.E","EUR/USD 1-Month Forward","13.734","13.875","13.8045","13.8235","14","13.78","13.8045","13.172","2024-11-21T02:24:05-06:00"
"EURUSD.G","EUR/USD 2-Month Forward","29.615","30.121","29.868","31.062","31.062","29.51","29.868","28.711","2024-11-21T02:24:32-06:00"
"EURUSD.H","EUR/USD 3-Month Forward","44.534","45.19","44.862","45.9905","45.9905","44.08","44.862","45.455","2024-11-21T02:24:32-06:00"
"EURUSD.J","EUR/USD 4-Month Forward","60.531","61.285","60.908","61.991","61.991","59.75","60.908","61.412","2024-11-21T02:24:32-06:00"
"EURUSD.K","EUR/USD 5-Month Forward","78.656","79.464","79.06","80.1725","80.1725","76.5485","79.06","78.3185","2024-11-21T02:24:32-06:00"
"EURUSD.M","EUR/USD 6-Month Forward","98.628","99.43","99.029","100.1955","100.1955","93.375","99.029","97.122","2024-11-21T02:24:32-06:00"
"EURUSD.N","EUR/USD 7-Month Forward","116.907","117.909","117.408","118.6125","118.6125","108.577","117.408","117.35249","2024-11-21T02:24:32-06:00"
"EURUSD.Q","EUR/USD 8-Month Forward","135.806","137.03799","136.422","137.67999","137.67999","123.9275","136.422","135.7845","2024-11-21T02:24:33-06:00"
"EURUSD.U","EUR/USD 9-Month Forward","155.41901","156.91","156.16451","157.4695","157.4695","154.39999","156.16451","155.55502","2024-11-21T02:24:33-06:00"
"EURUSD.V","EUR/USD 10-Month Forward","175.067","176.842","175.9545","177.30901","177.30901","174.2","175.9545","175.3925","2024-11-21T02:24:32-06:00"
"EURUSD.X","EUR/USD 11-Month Forward","195.49899","197.591","196.545","197.936","197.94299","194.3","196.545","194.7355","2024-11-21T02:24:31-06:00"
"EURUSD.1","EUR/USD 1-Year Forward","213.817","216.217","215.017","216.44051","216.56149","212.10001","215.017","215.80447","2024-11-21T02:24:32-06:00"
"EURUSD.2","EUR/USD 2-Year Forward","433.177","439.59201","436.38449","438.04651","441.20001","403.01999","436.38449","436.91101","2024-11-21T02:24:33-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