Get market ratesCopy Pageget https://api.xeneta.com/v3.0/ocean/market-ratesReturns ocean freight market rates within the specified parameters.Query ParamsoriginstringrequiredDefaults to CNSGHDefines the origin location of the requested market rate data. Can be either a UN/LOCODE or a region as defined in Xeneta's geo-hierarchy. For example, CNSGH or china_east_main.destinationstringrequiredDefaults to NLRTMDefines the destination location of the requested market rate data. Can be either a UN/LOCODE or a region as defined in Xeneta's geo-hierarchy. For example, NLRTM or north_europe_main.date_fromdaterequiredDefaults to 2023-02-01Defines the start date of the date range for the requested market rates in the YYYY-MM-DD format. The total range cannot exceed 31 days.date_todaterequiredDefaults to 2023-02-05Defines the end date of the date range for the requested market rates in the YYYY-MM-DD format. The total range cannot exceed 31 days.Using a future date will return contracted rates that are valid up to 10 days (when contract_length is set to short) or 3 months (when contract_length is set to long) beyond the current date.contract_lengthstringrequiredDefaults to longDefines the type of contract for the requested market rate data. Accepted values are long or short.contracted_withinstringrequiredDefaults to 6monthsDefines the maximum age of the contracts to be included in the requested market rate data, relative to each day. Accepted values include all, 3months and 6months. Using any value other than all when contract_length is set to short will return an error.container_typestringrequiredDefaults to 40DCDefines the container type of the requested market rate data. Accepted values include 20DC, 20RE, 20TK, 40DC, 40RH and 40HC.thc_methodologystringrequiredDefaults to methDefines whether the requested market rate data should include the terminal handling charge. Accepted values include meth, othc, dthc, none and both. Selecting meth will use Xeneta's default methodology for the requested origin and destination.bump_upbooleanDefaults to trueDefines whether to allow rates from larger geographic regions in the response if there is not enough data for the requested origin and destination. Using false when there is no rate data available for the requested origin and destination will return an error.truefalseResponse 200200Updated about 1 year ago