Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bourso-cli"
version = "0.3.2"
version = "0.4.0"
edition = "2021"
repository = "https://github.com/azerpas/bourso-api"

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,14 @@ Choose the right binary for your OS between:

#### Approve the app (MacOS)

If you then get a `"bourso-cli" cannot be opened because the developer cannot be verified` error, go to `System Preferences > Security & Privacy > General` and click `Open Anyway`
On MacOS, you may need to allow the app to run.
Comment thread
azerpas marked this conversation as resolved.

If the above doesn't help you, make sure the file is executable:
```sh
chmod +x bourso-cli
# if it still says `Permission denied`, try
chown 777 bourso-cli
```
Make sure you move the app to your Applications folder before running it.

⚠️ Signing in with a different IP address than the ones you usually use will trigger a security check from Bourso. You'll have to validate the connection from your phone. A [GitHub pull request](https://github.com/azerpas/bourso-api/pull/10) is open to handle this case.
Then run the following command in your terminal:
```
xattr -r -d com.apple.quarantine /path/to/bourso-cli
Comment thread
Mathious6 marked this conversation as resolved.
```

#### Verify your installation
Bourso CLI embeds [SLSA](https://slsa.dev/) standard to verify the integrity of the binary. You can verify the signature of the binary by:
Expand Down Expand Up @@ -82,6 +80,8 @@ Save your client ID with this config command:
```
The password will be asked each time you run the app to avoid storing it in a file.

⚠️ Signing in with a different IP address than the ones you usually use will trigger a security check from Bourso. You'll have to complete the MFA (Multi-Factor Authentication) process to log in successfully.

### Get your accounts
```
./bourso-cli accounts
Expand Down
3 changes: 3 additions & 0 deletions src/bourso_api/src/client/trade/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ fn get_trading_summary_url(config: &Config, account: Account) -> Result<String>
pub struct TradingSummaryItem {
/// Either "account" or "positions"
pub id: String,
/// Will be Some if TradingSummaryItem is of id "account"
pub account: Option<AccountSummary>,
Comment thread
Mathious6 marked this conversation as resolved.
/// Will be Some if TradingSummaryItem is of id "positions"
pub positions: Option<Vec<PositionSummary>>,
}
Comment thread
azerpas marked this conversation as resolved.

Expand Down