Skip to content

Latest commit

 

History

History
112 lines (66 loc) · 10.6 KB

customize-messages-or-embeds.md

File metadata and controls

112 lines (66 loc) · 10.6 KB
description
You can customize your Discord message or embed, and your tweet.

Customize Messages or embeds

You have full customization of how your message or embed content looks when sent. We've built a 'no-code' message builder for sharing trades to Discord, scope it out in your account settings. There is where you'll also specify the webhooks you wish Trade Hub to use for sending out your trades.

{% hint style="info" %} This can be seen as intimidating for some, with all the available configurations & properties, but we wanted to allow for very detailed messages or embeds. Use the default embed to see how the embeds are built using some of the available data properties. {% endhint %}

{% embed url="https://youtu.be/6WDa5jnrTJg" %} v1 design, same functionality. v2 videos in the works. {% endembed %}

Discord

Each individual market and trade event (open, close, etc.) can be customized.

To customize your Discord message or embed, go to Accounts & Sharing in your account settings under Linked Accounts, click the customize button in the settings for your Discord account- you must have Discord linked for this.

Customization

This will prompt you with the message/embed builder as shown below. The message builder is pretty self-explanatory. To start, select which trade event (open, close, etc.) and the market you you wish to customize trade sharing content for.

You can use regular text messages or embeds, which offer more personalization. The trade properties are all the data sets that can be used that will be replaced with the actual data each one represents. For example, if you use Stock Ticker it will be replaced with the ticker symbol of the submitted trade.
Place your cursor anywhere in the Text Message field or an Embed field, then click on the property you would like placed there.

The embed builder is straightforward and simple to use. Each aspect of the embed is labeled and the preview above will show an example of the content. Providing a test trade to see a finished version of the embed will be added soon.

{% hint style="danger" %} @everyone and role pings should be set with your webhook settings to avoid using invalid roles or mentions. {% endhint %}

Account, Trade, & Stock Properties

Properties are a menu of data sets that can display asset tickers, current price, user info, and so many others including advanced data sets such as the volume and the days high/low ranges.

NOTE:
You can have properties punctuated to start with capital letters, or have the whole value of that property in all caps.
For example:
[[stock.name]] the ticker would be aapl
[[Stock.name]] the ticker would be Aapl
[[STOCK.name]] the ticker would be AAPL
[[trade.type]] would be open, average, partial, or close
[[Trade.type]] would be Open, Average, Partial, or Close

{% hint style="info" %} When TP/SL is triggered and options expire, these are sent through the Close event, and will utilize the Trade Notes property. "Trade Expired", and "Stop Loss Hit" or "Take Profit Hit" will be in the trade notes. {% endhint %}

Account Properties

Property NameInfo
Account UsernameYour username on the web app
Account AvatarYour avatar or profile picture on the web app
Account LinkYour dashboard link
Account RepYour reputation count

Trade Properties

Property NameInfo
Trade DirectionDirection of the position. (long/short)
Trade PriceThe submitted price of your trade. If cmp is used when submitting a trade, then uses that price
Trade Entry PriceThe entry price of trade. (can use Trade Price instead)
Trade Exit PriceThe exit price of trade. (can use Trade Price instead)
Trade Average PriceNew average price if a trade has been averaged up/down
Trade TPTake Profit of your trade- blank if none - Advanced Menu
Trade SLStop Loss of your trade- blank if none - Advanced Menu
Trade TypeThe type of your trade. (open/average/trim/exit)
Trade StyleThe style of your trade. (daytrade/scalp/swing/long term)
Trade FlagsThe flag of your trade, if specified, or blank if none is specified. (risky or high risk, lotto or yolo, earnings)
Trade NotesThe notes of of your trade, blank if none
Trade TimestampTimestamp of the current submitted trade input
Trade Opened AtTimestamp of when the open trade input was submitted
Trade Closed Attimestamp of when the close trade input was submitted (Trade Timestamp can be used instead).
Trade First NoteThe trade notes of the first submitted trade entry
Trade GainThe gain percentage of a partial/trim or exit
Trade LinkThe Trade Insight URL link
OPTIONS PROPERTIESINFO
Trade Options Exp DateOptions expiration dates are written in mm/dd/yy format.
Trade Options Exp NoYYOptions expiration dates in mm/dd format
Trade Options StrikeOption trade strike price
Trade Options StrategyOption trade, call or put

Stock Properties

Property NameInfo
Stock NameStock ticker symbol
Stock IconCompany logo
Stock CMPCurrent market price of stock at time of trade submission
Stock VolumeTrading volume of stock - Advanced Menu
Stock Day HighHighest price of stock today - Advanced Menu
Stock Day LowLowest price of stock today - Advanced Menu
Stock Previous CloseClosing price from the previous market day - Advanced Menu

Message & Embed Properties

Embed example

Example of how inline Field's work

PropertyValue
Author NameThe name of author of the embed author
Author URLUsed to link the Author Name
Author ImageAn avatar for author, shown with the teal logo in the example above
TitleThe embed title
Title URLUsed to link the Title
ColorThe embed color, shown as the teal strip in the example above
DescriptionThe content within the embed
Thumbnail URLThe thumbnail image, shown as the white logo in the example above
Image URLAdds an image below the description and the above footer
Footer NameThe small footer text at the bottom
Footer Img URLThe footer image, shown as the black logo in the example above
TimestampUsed to show date/time at end of footer
Field (w/ inline)Creates text fields with headers & values. These can be 'inline' to put 2-3 of them on the same row.

{% hint style="info" %} Author Name & Author Image URL are not to be confused with the username & avatar that the webhook name & avatar uses. {% endhint %}

Twitter (Temporarily Disabled)

To customize your Twitter tweets, go to Accounts & Sharing in your account settings under Linked Accounts, click the customize button in the settings for your Twitter account- you must have Twitter linked for this.

This will prompt you with the message/embed builder as shown below. The message builder is pretty self-explanatory. To start, select which trade event (open, close, etc.) and the market you you wish to customize trade sharing content for.

Check out the above documentation here #customization for more info as customization for Discord and Twitter use the same interface with the same functionality. There is also a description of each property here #account-trade-and-stock-properties

Examples

Here are some examples of custom messages & embeds to give inspiration on how you can make yours look.

{% embed url="https://photos.app.goo.gl/6YKLn44UtrdsWRPN9" %} Discord Trade Sharing Examples {% endembed %}

{% embed url="https://photos.app.goo.gl/EmTM1LhsFUrYz2KXA" %} Twitter Trade Sharing Examples {% endembed %}