Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Obligor Infos to Assets #169

Closed
yellowbean opened this issue Apr 24, 2024 · 3 comments · Fixed by #206
Closed

Include Obligor Infos to Assets #169

yellowbean opened this issue Apr 24, 2024 · 3 comments · Fixed by #206

Comments

@yellowbean
Copy link
Owner

Tag on asset can be very flexible , just act like a map[str, str] , ie

{"rating":"AA"}

or

{"FICO":"650"}

Because in the CLO transaction , or other transaction, it requires to query sum balance of assets with certain criteria. which suggest, the tagging can be anything. The engine should able to query by type of string.

This will impose strict requirement on the inputs and complex internal query function .

But it seems inevitable .

@yellowbean
Copy link
Owner Author

yellowbean commented Sep 2, 2024

Propose Solution

For each asset, there should be one more extra Optional field obligor

obligor object shall have three optional fields:

  • ID , string, which serve as mapping id to user's database
  • Tags, set(strings), user can apply assumption by tags
  • Fields, dict(string, string|number), which represent a exclusive field with k-v. => reserved for future use

Apply assumption

User now are able to apply performance assumption by:

  • ID
  • Tags
  • Fields

Propose Syntax

In Python wrapper:

("ByObligor"
  ,("EqID",[<ID>...],<Asset Performance Assumption> )
  ,("hasAnyTag",[<Tag>],<Asset Performance Assumption> ) 
  ,("hasAllTag",[<Tag>],<Asset Performance Assumption> ) 
  ,("EqTag",[<Tag>], <Asset Performance Assumption> )
  ,("subsetTag",[<Tag>],<Asset Performance Assumption> ) 
  ,("Rest", <Asset Performance Assumption> )| ,("_", <Asset Performance Assumption> )
  ,....
  )

Strategy

  • hasAnyTag -> when intersect( set(asset'tags), set(assump'tags)) > 0
  • hasAllTag -> set(assump'tags) is a subset of set(asset'tags)
  • subsetTag -> set(asset'tags) is a subset of set(assump'tags)
  • EqTag -> set(asset'tags) == set(assump'tags)
  • Rest -> default assumption

Scope

  • apply assumption by tags

Out of scope

  • query formula via tags
  • Fields just serves a place holder

@yellowbean yellowbean changed the title Include Tag based assets in the pool Include Obligor Infos to Assets Sep 2, 2024
@yellowbean yellowbean linked a pull request Sep 2, 2024 that will close this issue
@yellowbean
Copy link
Owner Author

close 0296c28

@yellowbean
Copy link
Owner Author

8397393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant