Skip to content

Question about fee in order structure #27036

@mehrab-hn

Description

@mehrab-hn

Hey everyone,
I've got a really quick question. The unified order structure has a 'fee' dictionary as follows:

'fee': {
        'currency': 'BTC',        // which currency the fee is (usually quote)
        'cost': 0.0009,           // the fee amount in that currency
        'rate': 0.002,            // the fee rate (if available)
    },

For an order that has no fills yet ('filled' == 0), is it right to have fee['cost'] equal to zero? I mean, should it reflect the 'filled' value? Because we do the same thing for order's cost (cost = filled * price). I'm implementing a new exchange (Nobitex) and want to make sure I'm handling this correctly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions