{"id":21221816,"url":"https://github.com/primitivefinance/m3-rs","last_synced_at":"2025-07-10T13:33:00.147Z","repository":{"id":182601756,"uuid":"664849791","full_name":"primitivefinance/m3-rs","owner":"primitivefinance","description":"Simple rust interface to get derived analytical information of algorithmic market making models (M3).","archived":false,"fork":false,"pushed_at":"2023-07-21T16:00:11.000Z","size":39,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-05T14:02:57.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primitivefinance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-10T22:28:22.000Z","updated_at":"2024-08-25T12:01:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"014ce698-6729-4034-95e5-78084e59d3a0","html_url":"https://github.com/primitivefinance/m3-rs","commit_stats":null,"previous_names":["primitivefinance/m3-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/primitivefinance/m3-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fm3-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fm3-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fm3-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fm3-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primitivefinance","download_url":"https://codeload.github.com/primitivefinance/m3-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primitivefinance%2Fm3-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585371,"owners_count":23632646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T22:34:01.354Z","updated_at":"2025-07-10T13:32:58.944Z","avatar_url":"https://github.com/primitivefinance.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# M3-rs\n\nConstant function market makers are a class of automated market making strategies implemented via smart contracts on blockchain networks like Ethereum. \nM3-rs is a Rust interface for interacting with these models and their properties, such as the amount of assets that can be sold at a price.\n\n# Install\n```\nAdd to Cargo.toml:\nm3-rs = { git = \"https://github.com/primitivefinance/m3-rs\" }\n```\n\n# Usage\n\n\n```rust\nuse m3_rs::{...};\n\nfn main() {\n    // Create a base model\n    let mut base = BaseModel::new(\n        \"base_model_name\".to_string(),\n        \"base_model_version\".to_string(),\n        \"base_model_code\".to_string(),\n        \"base_model_id\".to_string(),\n    );\n\n    // Set it's objective, i.e. the model.\n    base.set_objective(Box::new(RMM01 {\n        strike: 1_f64,\n        volatility: 1_f64,\n        time_to_maturity: 1.0,\n    }))\n\n    // Use the functions in plot.rs to plot different derived data using these models.\n} \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Fm3-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimitivefinance%2Fm3-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimitivefinance%2Fm3-rs/lists"}