WebSocket
Create Deposit
Creates a fake deposit for the given asset. This method doesn't have a response.
This endpoint is only available in the Sandbox environment and exclusively for the EUR asset. It will not work in production.
Auth:API Key
Tags:
Funding
Deposits
Sandbox
Command Name
CreateDepositCommand Arguments
| Field | Type | Required | Description |
|---|---|---|---|
Asset | string | Required | Asset name (EUR only) Example: "EUR" |
Amount | number | Required | Deposit amount Example: 1000 |
DepositAddress | string | Required | Deposit Address Example: "deposit-addr-123" |
AssetRequired
Type:
string
Description:
Asset name (EUR only)
Example:
"EUR"AmountRequired
Type:
number
Description:
Deposit amount
Example:
1000DepositAddressRequired
Type:
string
Description:
Deposit Address
Example:
"deposit-addr-123"Command Invocation
Command Arguments Example:
[
"EUR",
1000,
"deposit-addr-123"
]Invocation Example:
connection.invoke('CreateDeposit', 'EUR', 1000.0, 'deposit-addr-123')Response Event
Event Name
executionEventsSubject
This method does not return a response.
Code Examples
const signalR = require('@microsoft/signalr');
const apiKey = 'YOUR_API_KEY_HERE';
const connection = new signalR.HubConnectionBuilder()
.withUrl('https://publicapi.sandbox.hercle.financial/ExecutionLiveServer/v1', {
accessTokenFactory: () => apiKey,
})
.build();
connection.start()
.then(() => {
console.log('Connected to WebSocket');
// Invoke command
connection.invoke('CreateDeposit', "EUR", 1000, "deposit-addr-123")
.then(() => {
console.log('Command sent successfully');
})
.catch(err => {
console.error('Command failed:', err);
});
})
.catch(err => {
console.error('Connection failed:', err);
});
// Listen for events
connection.on('executionEvents', (data) => {
console.log('Received event:', data);
});SignalR API Tester
Test this command in the sandbox environment
Disconnected
Your API key is only used locally and never stored