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.



type: ‘ucm-notify-ui’, info: {

type: ‘all’,

level: ‘success’,

image: ‘

link: ‘

message: ‘This is a test notification’,

sound: {

tone: ‘pingUp’,

}

}

}])) 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.



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=”

color_bg: ‘#FF1133’, // RGB

color_text: ‘#FF1133’, // RGB

color_border: ‘#FF1133’, // RGB

label: ‘M’, // marker letter

size_min: 8,

}

}])) wss.send(JSON.stringify([0, ’n’, 1, {type: ‘ucm-ui-chart’,info: {type: ‘marker_create’,id: ‘mark_0’,ts: Date.now(), // timestamp in millisecondssymbol: ‘tBTCUSD’, // not required. If not present applies to all symbolscontent: ‘lorem https://www.bitfinex.com/assets/bfx-stacked.png ">here', // content to show in tooltipcolor_bg: ‘#FF1133’, // RGBcolor_text: ‘#FF1133’, // RGBcolor_border: ‘#FF1133’, // RGBlabel: ‘M’, // marker lettersize_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)