<p>I implemented the feature.</p>
<p>If one trader has a referral ID set and the other not then both trade statistic objects get stored and we can detect it. If both traders have the same referral ID set we only store one trade statistic object. If both have different referral IDs both trade statistic objects get stored and displayed as well.</p>
<p>Referral ID can be set in preferences:<br>
<a target="_blank" href="https://user-images.githubusercontent.com/1449498/41932396-305fed84-7981-11e8-931b-5a84310107af.png"><img width="1197" alt="screen shot 2018-06-26 at 20 40 27" src="https://user-images.githubusercontent.com/1449498/41932396-305fed84-7981-11e8-931b-5a84310107af.png" style="max-width:100%;"></a></p>
<p>The entered referral ID must match one of the hard codes items.<br>
Market makers get one assigned by the core developers.</p>
<p>At any of the market views to show the trades with a referral ID set click cmd+t to see a popup. As the text can be long it is truncated but can be copied with the copy button:<br>
<a target="_blank" href="https://user-images.githubusercontent.com/1449498/41932358-19c51d38-7981-11e8-895e-68ceb293510e.png"><img width="1198" alt="screen shot 2018-06-26 at 20 39 15" src="https://user-images.githubusercontent.com/1449498/41932358-19c51d38-7981-11e8-895e-68ceb293510e.png" style="max-width:100%;"></a></p>
<p>Item example:<br>
Trade ID: yStswV-181f471b-de9f-4493-897f-44610818856e-070<br>
Date: Jun 26, 2018 8:22:32 PM<br>
Market: BTC/USD<br>
Price: 6715.4376<br>
Amount: 0.0001<br>
Volume: 0.67<br>
Payment method: Perfect Money<br>
ReferralID: REF_ID_342</p>
<p>At any of the market views to show the offers with a referral ID set click cmd+o to see a popup. As the text can be long it is truncated but can be copied with the copy button:<br>
<a target="_blank" href="https://user-images.githubusercontent.com/1449498/41932335-0a8ff860-7981-11e8-8835-11c1ca73a18a.png"><img width="1196" alt="screen shot 2018-06-26 at 20 39 24" src="https://user-images.githubusercontent.com/1449498/41932335-0a8ff860-7981-11e8-8835-11c1ca73a18a.png" style="max-width:100%;"></a></p>
<p>Item example:<br>
Offer ID: FZTZRAB-60c5c526-fb6c-4ecf-9c55-3f83a65d6f51-070<br>
Type: BUY<br>
Market: BTC/USD<br>
Price: 6691.4250<br>
Amount: 0.0001 BTC<br>
Payment method: Perfect Money<br>
ReferralID: REF_ID_342</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/proposals/issues/28#issuecomment-400428449">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtpi8WDrsvKbyT6jFjfXzmr65ZCUiks5uAoZ4gaJpZM4Uu7lY">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtrp1-GuwKFYvDXjZ40AdisYvA6Txks5uAoZ4gaJpZM4Uu7lY.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/proposals","title":"bisq-network/proposals","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/proposals"}},"updates":{"snippets":[{"icon":"PERSON","message":"@ManfredKarrer in #28: I implemented the feature.\r\n\r\nIf one trader has a referral ID set and the other not then both trade statistic objects get stored and we can detect it. If both traders have the same referral ID set we only store one trade statistic object. If both have different referral IDs both trade statistic objects get stored and displayed as well.\r\n\r\nReferral ID can be set in preferences:\r\n\u003cimg width=\"1197\" alt=\"screen shot 2018-06-26 at 20 40 27\" src=\"https://user-images.githubusercontent.com/1449498/41932396-305fed84-7981-11e8-931b-5a84310107af.png\"\u003e\r\n\r\nThe entered referral ID must match one of the hard codes items.\r\nMarket makers get one assigned by the core developers.\r\n\r\nAt any of the market views to show the trades with a referral ID set click cmd+t to see a popup. As the text can be long it is truncated but can be copied with the copy button:\r\n\u003cimg width=\"1198\" alt=\"screen shot 2018-06-26 at 20 39 15\" src=\"https://user-images.githubusercontent.com/1449498/41932358-19c51d38-7981-11e8-895e-68ceb293510e.png\"\u003e\r\n\r\nItem example:\r\nTrade ID: yStswV-181f471b-de9f-4493-897f-44610818856e-070\r\nDate: Jun 26, 2018 8:22:32 PM\r\nMarket: BTC/USD\r\nPrice: 6715.4376\r\nAmount: 0.0001\r\nVolume: 0.67\r\nPayment method: Perfect Money\r\nReferralID: REF_ID_342\r\n\r\nAt any of the market views to show the offers with a referral ID set click cmd+o to see a popup. As the text can be long it is truncated but can be copied with the copy button:\r\n\u003cimg width=\"1196\" alt=\"screen shot 2018-06-26 at 20 39 24\" src=\"https://user-images.githubusercontent.com/1449498/41932335-0a8ff860-7981-11e8-8835-11c1ca73a18a.png\"\u003e\r\n\r\nItem example:\r\nOffer ID: FZTZRAB-60c5c526-fb6c-4ecf-9c55-3f83a65d6f51-070\r\nType: BUY\r\nMarket: BTC/USD\r\nPrice: 6691.4250\r\nAmount: 0.0001 BTC\r\nPayment method: Perfect Money\r\nReferralID: REF_ID_342"}],"action":{"name":"View Issue","url":"https://github.com/bisq-network/proposals/issues/28#issuecomment-400428449"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/proposals/issues/28#issuecomment-400428449",
"url": "https://github.com/bisq-network/proposals/issues/28#issuecomment-400428449",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [bisq-network/proposals] Add referrer Id for external Bisq market makers (#28)",
"sections": [
{
"text": "",
"activityTitle": "**Manfred Karrer**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@ManfredKarrer",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"bisq-network/proposals\",\n\"issueId\": 28,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"bisq-network/proposals\",\n\"issueId\": 28\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/bisq-network/proposals/issues/28#issuecomment-400428449"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 347847000\n}"
}
],
"themeColor": "26292E"
}
]</script>