Skip to content

Commit

Permalink
Update instrument docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Apr 23, 2024
1 parent b008fb3 commit b80d881
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 7 additions & 2 deletions nautilus_trader/model/instruments/cfd.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ from nautilus_trader.model.objects cimport Quantity

cdef class Cfd(Instrument):
"""
Represents a generic currency pair instrument in a spot/cash market.
Represents a Contract for Difference (CFD) instrument.
Can represent both Fiat FX and Cryptocurrency pairs.
Expand All @@ -45,7 +45,7 @@ cdef class Cfd(Instrument):
raw_symbol : Symbol
The raw/local/native symbol for the instrument, assigned by the venue.
asset_class : AssetClass
The cfd contract asset class.
The CFD contract asset class.
base_currency : Currency, optional
The base currency.
quote_currency : Currency
Expand Down Expand Up @@ -119,6 +119,11 @@ cdef class Cfd(Instrument):
If `max_price` is not positive (> 0).
ValueError
If `min_price` is negative (< 0).
References
----------
https://en.wikipedia.org/wiki/Contract_for_difference
"""

def __init__(
Expand Down
4 changes: 1 addition & 3 deletions nautilus_trader/model/instruments/commodity.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ from nautilus_trader.model.objects cimport Quantity

cdef class Commodity(Instrument):
"""
Represents a generic currency pair instrument in a spot/cash market.
Can represent both Fiat FX and Cryptocurrency pairs.
Represents a commodity instrument in a spot/cash market.
Parameters
----------
Expand Down

0 comments on commit b80d881

Please sign in to comment.