# How to Upload Market Data via API

Market data is relatively easy to get into Molecule. Some of our customers upload market data via API.&#x20;

#### API Version 2

As of early 2019, Molecule has a new upload API for market data. For more information, see our API guide [here](https://developer.molecule.io/).

#### API Version 1

Ingredients

You'll need the following:

* A Molecule username/password with permission to upload market data.
* A `curves_upload_template.xlsx` file filled out with the market data you intend to upload. You can get a sample in the Molecule app, at Market Data > Curves > Download Curves Template.
* cURL (or a similar tool) installed on your machine.

#### Script

A simple cURL command gets things done. Here's an example:

```
curl 'https://app.molecule.io/curve_upload_records.json' -v -XPOST -F curve_upload_record\[data_file\]=@/path-to-your-file/curves_upload_template.xlsx -u username:password
```

Just substitute the following fields:

* path-to-your-file
* username
* password

<br>
