Buying a contract using API

Hi, I’m trying to automate trading by initiating a buy using API. When I try to initiate a proposal for BOOM500 symbol using the below parameters, I get an error
{
“proposal”: 1,
“amount”: 100,
“basis”: “stake”,
“contract_type”: “CALL”,
“currency”: “USD”,
“duration”: 3,
“duration_unit”: “m”,
“symbol”: “BOOM500”
}

The error is:
{
“code”
:
“OfferingsValidationError”
“details”
{
“field”
“contract_category”
message: “Trading is not offered for this asset.”

When I try using Volatility R_100, it works OK and I’m able to get the proposal ID.

Could someone help with the required parameters for BOOM500?

1 Like

Hello there,

Thank you for joining the community and for leaving us a comment.

Our available symbols and contract types vary based on the jurisdiction and location due to regulatory compliance. This means that you may not have access to all offerings. To check which trading symbols are available, use the Active Symbols API. This API lists accessible symbols based on your location and account settings. Since you might not have access to all offerings, it ensures you’re viewing only the products you can trade.

If you have any questions, please visit our Help Centre or contact us via Live Chat and WhatsApp.

Hi Faazil,

I have access to BOMM500 as attached.

Can I get a sample code for sending a JSON request for Price Proposal?

The API only gives me the payload which when I test on the API explorer, it works but when I use my code with the header, App ID and Token it does’t work.

Regards,

James

}

(attachments)

Hi,

I’m getting an error that “Trading is not offered for this asset”.

What does this mean? Is there a way around it?

Regards,

James

Hello there,

As mentioned before please note that symbols and contract types differ depending on the jurisdiction and location due to regulatory requirements.

If you have any questions, please visit our Help Centre or contact us via Live Chat and WhatsApp.