Skip to main content
What are rules?

How to use Rules to automate transaction edits and deletions, including FAQ

P
Written by Petur
Updated over a month ago

Rules can be used to automatically to edit your transactions as they get imported into Koinly. There are a few different types of rules:

  • Spam rules

  • Currency rules

  • Edit rules

  • Delete rules

All of your rules can be viewed and deleted from the settings page.

Spam Rules

Whenever you mark a currency as spam, Koinly will suggest creating a spam rule for all transactions involving that currency. This allows you to decide if you want the spam rule applied automatically to both existing and future transactions using the marked currency. If you opt to create a rule, these transactions will be deleted automatically as spam.

Marking Transactions as Spam

In your transaction feed, select the transaction you want to mark as spam. Click on the three dots to the right and choose Mark as spam from the dropdown menu, as shown in the screenshot below:

Once the transaction is marked as spam, you'll have the option to create a rule to automatically apply this action to similar transactions going forward:
​

For more information on spam rules, see our article Spam tokens and worthless NFTs πŸ“–

Currency rules

Currency rules get created whenever you update a transaction using the 'Change currency' option. Koinly will then replace this currency whenever it is encountered, so that your transactions will always be imported with the correct currency going forward.
​
For guidance on how to change currency for your previously imported and future transactions, see our article Change Currency (if Koinly imported the wrong token) πŸ“–

Edit rules

Edit rules can be created in 2 different ways:

  • Using the 'Bulk Edit' feature
    If you enable the 'Rule' toggle when bulk editing, Koinly will transform the bulk edit into a rule. This means that whenever a newly imported transaction matches the selected filters, the edit will be applied to the new transaction. This is mostly useful for applying tags or descriptions:
    ​

  • By approving a rule suggestion
    Whenever you are tagging your transactions, Koinly will look for patterns in the way that you apply the tags. If you apply the same tag to transactions with similar traits, Koinly will suggest a rule that you can apply. This rule will then tag all existing transactions that match the filters, and also apply the tag to all future transactions.

Delete rules

You can create Delete rules using the Bulk Delete feature.
​
This allows you to automatically delete transactions that match a specific set of filters. It’s particularly useful for setting up custom spam filters or for removing transactions that aren't relevant to your transaction history.
​

ℹ️ We recommend only creating such rules if you are sure that the specified transactions can be skipped from your tax reports.

FAQ

Where can I view my rules?

You can find and manage your rules in the "Rules" section of the settings page.

​
Can I delete rules?

Yes, you can delete any rule, but please note that deleting a rule will not reverse any changes it has already made - it will only stop the rule from affecting future transactions.

Can I see which transactions were impacted by a rule?

On the Settings page, you can view the filters used by each rule by clicking the arrow button next to it. While this may display the transactions affected by the rule, the list may be empty depending on the types of edits made.

Why are transactions being marked as Spam even though I have no spam rules?

Koinly uses a set of 'Global' spam rules that are tracked on our servers and applied universally to all users to help filter out most spam transactions. If you think any of these rules are incorrectly marking your transactions as spam, please reach out to us via chat or by emailing [email protected].
​

Did this answer your question?