Power Up Your Strategy on Bitfinex
Bitfinex UI tweaks to maximize your trading strategies
For my first Medium article I want to take the chance to showcase two cool features recently added to the Bitfinex and Ethfinex UIs: Custom Notifications and Chart Markers.
Most professional traders on Bitfinex (and other platforms) tend to keep multiple tabs/screens to follow market movements, news, Twitter, chats, etc. This is a surefire way to misplace your attention and miss out on critical market movements.
What about having a way to stream selected events directly to your Bitfinex UI?
The following post addresses the attention problem from the trader/developer point of view; however, we have a great surprise scheduled in the next few weeks to address the problem from a more general point of view… Just a hint: decentralized data stream market!
Note: you can stream data only to your own WebSocket connections, so no other user will be able to receive your content.
Custom Notifications: Send Notification Events
Custom notifications allow you to summon event popups/toasts in Bitfinex UI. You can set the type of notification (success, warning, error, …), link, text and sound.
wss.send(JSON.stringify([0, ’n’, 1, {
type: ‘ucm-notify-ui’, info: {
type: ‘all’,
level: ‘success’,
image: ‘https://www.bitfinex.com/assets/bfx-stacked.png',
link: ‘http://www.bitfinex.com',
message: ‘This is a test notification’,
sound: {
tone: ‘pingUp’,
}
}
}]))
Chart Markers: Display custom markers that represent events and additional visual information
Chart markers allow you to display certain important news directly via the Bitfinex UI. All markers are associated with a specific timestamp which determines the candle above which the mark will be shown.
wss.send(JSON.stringify([0, ’n’, 1, {
type: ‘ucm-ui-chart’,
info: {
type: ‘marker_create’,
id: ‘mark_0’,
ts: Date.now(), // timestamp in milliseconds
symbol: ‘tBTCUSD’, // not required. If not present applies to all symbols
content: ‘lorem <a href=”https://www.bitfinex.com/assets/bfx-stacked.png">here</a>', // content to show in tooltip
color_bg: ‘#FF1133’, // RGB
color_text: ‘#FF1133’, // RGB
color_border: ‘#FF1133’, // RGB
label: ‘M’, // marker letter
size_min: 8,
}
}]))
You can find the official documentation here.
Below you can see an example of how to efficiently use custom notifications and chart markers together to stream a set of tweets from your preferred influencers, directly to your Bitfinex interface. (Source)
Potential Use Cases:
- Public News/Events (discover correlation with price, …);
- Your algo/strategy (direction shift, open/close margin position, …);
- Trading signals from your AI bots or other external sources;
- Your deposits/withdrawals;
- Notifications from your favourite Telegram channels/groups (Source);
- Notifications from other exchanges (where you might trade on, but not cool as Bitfinex of course);
- Set reminders to drink some fresh water;
- Set reminders to feed your cat.
To showcase the potential of these new features we developed few examples that you can find in the following repository.