pub enum VenuesCommands {
List(ListArgs),
Schema(SchemaArgs),
Update(UpdateArgs),
Init(InitArgs),
Validate(ValidateArgs),
}Expand description
Venue management subcommands.
List available exchange venues, view the YAML schema, initialise the user venues directory, or validate a custom descriptor file.
§Examples
scope venues list
scope venues list --format json
scope venues schema
scope venues init
scope venues validate my-exchange.yamlVariants§
List(ListArgs)
List all available exchange venues and their capabilities.
Shows the catalog’s and your own CEX venues with their supported API capabilities (order_book, ticker, trades, ohlc), then the DEX venues.
§Examples
scope venues list
scope venues list --format jsonSchema(SchemaArgs)
Display the YAML schema for venue descriptors.
Prints the expected structure, field descriptions, and an annotated example you can copy to create your own venue descriptor.
§Examples
scope venues schema
scope venues schema --format jsonUpdate(UpdateArgs)
Fetch the venue catalog: new and fixed venues without a new scope.
Downloads the catalog index and every venue file, checks each against its SHA-256, and replaces ~/.scope-bca/venues/catalog/. Your own files in ~/.scope-bca/venues/ are not touched and still override a catalog venue with the same id.
§Examples
scope venues update
scope venues update --url https://example.com/my-catalogInit(InitArgs)
Copy the catalog’s venue files into your venues folder to customise.
Copies each catalog YAML file as it is to ~/.scope-bca/venues/, where your copy overrides the catalog’s. Fetches the catalog first if it is not there.
§Examples
scope venues init
scope venues init --forceValidate(ValidateArgs)
Validate a venue descriptor YAML file.
Parses the file against the VenueDescriptor schema and reports any errors or warnings. Exits with code 0 on success, 1 on failure.
§Examples
scope venues validate my-exchange.yaml
scope venues validate ~/.scope-bca/venues/custom.yamlTrait Implementations§
Source§impl Debug for VenuesCommands
impl Debug for VenuesCommands
Source§impl FromArgMatches for VenuesCommands
impl FromArgMatches for VenuesCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for VenuesCommands
impl Subcommand for VenuesCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for VenuesCommands
impl Freeze for VenuesCommands
impl RefUnwindSafe for VenuesCommands
impl Send for VenuesCommands
impl Sync for VenuesCommands
impl Unpin for VenuesCommands
impl UnsafeUnpin for VenuesCommands
impl UnwindSafe for VenuesCommands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more