Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 2.31 KB

File metadata and controls

47 lines (38 loc) · 2.31 KB

Position2

Properties

Name Type Description Notes
id str Position UUID.
status str Lifecycle status of the position.
in_flight bool True while an action is in progress for this position.
position_type str Whether the position is lend- or borrow-side.
vault_account_id str Fireblocks vault account holding the position.
opportunity_id str Opportunity / vault or market identifier.
chain_id str Chain identifier as a string (e.g. "1").
provider_id str Lending protocol.
origin str Whether the position was opened natively in Fireblocks or imported externally.
principal_asset_id str Fireblocks asset id for the principal (underlying) asset.
position_asset_id str Fireblocks asset id for the position / share token.
principal_balance str Human-readable principal balance.
position_balance str Human-readable position token balance.
created_at str Creation time (ISO-8601).
updated_at str Last update time (ISO-8601).
last_synced_at str Last successful on-chain sync time (ISO-8601). [optional]
last_modified_at str Timestamp of the last user-triggered action on this position (ISO-8601). Empty if the user has never interacted with it. [optional]
available_actions List[str] Actions the API allows next for this position.
var_yield str Accrued yield in principal token units (decimal string). Only present for Morpho positions. [optional]

Example

from fireblocks.models.position2 import Position2

# TODO update the JSON string below
json = "{}"
# create an instance of Position2 from a JSON string
position2_instance = Position2.from_json(json)
# print the JSON string representation of the object
print(Position2.to_json())

# convert the object into a dict
position2_dict = position2_instance.to_dict()
# create an instance of Position2 from a dict
position2_from_dict = Position2.from_dict(position2_dict)

[Back to Model list] [Back to API list] [Back to README]