Bond
Bond
Bases: BaseModel
Bond security.
Attributes:
| Name | Type | Description |
|---|---|---|
face_value |
float
|
Face value of the bond. |
id |
str
|
ID of the bond. |
interest_rate |
float
|
Interest rate of the bond. |
issue_date |
int
|
Issue date of the bond. |
issuer |
Issuer
|
Issuer of the bond. |
listing |
Listing
|
Listing of the bond. |
maturity_date |
int
|
Maturity date of the bond. |
name |
str
|
Name of the bond. |
price_spread |
Union[PriceSpread]
|
Price spread of the bond. |
repurchase_listing |
Listing
|
Repurchase listing of the bond. |
version |
int
|
Version of the bond. |
volume |
float
|
Volume |
client |
Client
|
Client for interacting with the API. |
Source code in alpha_trader/bonds/__init__.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
effective_interest_rate: float
property
Calculate effective interest rate
Returns: effective interest rate
remaining_time: float
property
Calculate remaining time
Returns: remaining time
issue(company_id, face_value, interest_rate, maturity_date, number_of_bonds, client)
staticmethod
Issue new bonds
Args: client: API Client company_id: ID of the company face_value: face value of the bond interest_rate: interest rate maturity_date: maturity date number_of_bonds: quantity of bonds to issue
Returns:
| Type | Description |
|---|---|
'Bond'
|
Bond |
Source code in alpha_trader/bonds/__init__.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |