The default way to send external signals to Mudrex is via webhooks. Below is more info on how the webhook call needs to be done
1. API to send signals
Users need to use the following API to send signals
2. Message in API
The actual message about what the signal is needed to be sent in as a JSON payload. Mudrex accepts POST only application/JSON calls to our webhook APIs. We accept the following parameters:
This is the unique id of the signal strategy. You can find it on the signal strategy page.
|"action"|| This is the action that you want the signal to take. more details below
|"stop_loss_exact_price"|| This is an optional parameter that can be used to set the stoploss. You need to submit an exact price for this stoploss.
|"take_profit_exact_price"|| This is an optional parameter that can be used to set the Take Profit. You need to submit an exact price for this Take profit.
The action can take one of the below 7 values:
|Value for action||Description|
|"long_entry"||Open a "long" position if no position is open|
|"long_exit"||Close an open "long" positions|
|"short_entry"||Open a "short" position if no position is open|
|"short_exit"||Close an open "short" positions|
|"reverse_long_to_short"||Closes any open "long" position and then opens a new "short" position. If no "long" position is present then simply opens a new "short" position|
|"reverse_short_to_long"||Closes any open "short" position and then opens a new "long" position. If no "short" position is present then simply opens a new "long" position|
|"test"||This is just to "test" the API. No actions are taken.|
Note: One of the most common mistakes is to not add quotes (i.e. sending id instead of "id"). Pls make sure that this added.
If you need any help using Mudrex then please feel free to write to us at firstname.lastname@example.org