oilpriceapi 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/client.js +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -625,12 +625,15 @@ All errors extend `OilPriceAPIError`:
|
|
|
625
625
|
|
|
626
626
|
The API provides prices for the following commodities:
|
|
627
627
|
|
|
628
|
-
- **Crude Oil**:
|
|
629
|
-
- **Refined Products**:
|
|
630
|
-
- **Natural Gas**:
|
|
631
|
-
- **
|
|
632
|
-
|
|
633
|
-
|
|
628
|
+
- **Crude Oil**: `WTI_USD`, `BRENT_CRUDE_USD`
|
|
629
|
+
- **Refined Products**: `GASOLINE_USD`, `DIESEL_USD` (state averages + station-level), `HEATING_OIL_USD`, `JET_FUEL_USD`
|
|
630
|
+
- **Natural Gas**: `NATURAL_GAS_USD`, `DUTCH_TTF_EUR`, `NATURAL_GAS_GBP`
|
|
631
|
+
- **Coal** (8 Endpoints):
|
|
632
|
+
- **US Spot**: `CAPP_COAL_USD`, `PRB_COAL_USD`, `ILLINOIS_COAL_USD`
|
|
633
|
+
- **International**: `NEWCASTLE_COAL_USD`, `COKING_COAL_USD`, `CME_COAL_USD`
|
|
634
|
+
- **Historical**: `NYMEX_APPALACHIAN_USD`, `NYMEX_WESTERN_RAIL_USD`
|
|
635
|
+
|
|
636
|
+
See the [full list of 79 commodities](https://www.oilpriceapi.com/commodities) in the documentation.
|
|
634
637
|
|
|
635
638
|
## Pricing & Rate Limits
|
|
636
639
|
|
package/dist/client.js
CHANGED
|
@@ -126,10 +126,9 @@ export class OilPriceAPI {
|
|
|
126
126
|
headers: {
|
|
127
127
|
'Authorization': `Bearer ${this.apiKey}`,
|
|
128
128
|
'Content-Type': 'application/json',
|
|
129
|
-
'User-Agent': 'oilpriceapi-node/0.5.
|
|
130
|
-
'X-
|
|
131
|
-
'X-
|
|
132
|
-
'X-Client-Type': 'sdk',
|
|
129
|
+
'User-Agent': 'oilpriceapi-node/0.5.1 node/' + process.version,
|
|
130
|
+
'X-Api-Client': 'oilpriceapi-node',
|
|
131
|
+
'X-Client-Version': '0.5.1',
|
|
133
132
|
},
|
|
134
133
|
signal: controller.signal,
|
|
135
134
|
});
|